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.
[Serializable]
[Equatable]
public sealed class RemoveStep : FeedElement, IEquatable<XmlUnknown>, IEquatable<FeedElement>, IRecipeStep, ICloneable<IRecipeStep>, IEquatable<RemoveStep>
- Inheritance
-
RemoveStep
- Implements
- Inherited Members
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 IRecipeStep Clone()
Returns
- IRecipeStep
The new copy of the RemoveStep.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Normalize(FeedUri?)
Converts legacy elements, sets default values, etc..
public void Normalize(FeedUri? feedUri = null)
Parameters
feedUri
FeedUriThe feed the data was originally loaded from.
Exceptions
- UriFormatException
Href is relative and
feedUri
is 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
left
RemoveStepThe left object
right
RemoveStepThe 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
left
RemoveStepThe left object
right
RemoveStepThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.