Class RemoveStep
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Removes or moves a file or directory. It is an error if the path is outside the implementation.
public sealed class RemoveStep : FeedElement, IEquatable<FeedElement>, IRecipeStep, ICloneable<IRecipeStep>, IEquatable<RemoveStep>
- Inheritance
-
objectRemoveStep
- Implements
- Inherited Members
Constructors
RemoveStep()
public RemoveStep()
Properties
Path
The file or directory to be removed relative to the implementation root as a Unix-style path.
public required string Path { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this RemoveStep instance.
public RemoveStep Clone()
Returns
- RemoveStep
The new copy of the RemoveStep.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Normalize(FeedUri?)
Converts legacy elements, sets default values, etc..
public void Normalize(FeedUri? feedUri = null)
Parameters
feedUriFeedUriThe feed the data was originally loaded from.
Exceptions
- UriFormatException
Href is relative and
feedUriis a remote URI.
ToString()
Returns the remove step in the form "Path". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(RemoveStep?, RemoveStep?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(RemoveStep? left, RemoveStep? right)
Parameters
leftRemoveStepThe left object
rightRemoveStepThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(RemoveStep?, RemoveStep?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(RemoveStep? left, RemoveStep? right)
Parameters
leftRemoveStepThe left object
rightRemoveStepThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.