Show / Hide Table of Contents

Class RemoveStep

Removes or moves a file or directory. It is an error if the path is outside the implementation.

Inheritance
Object
XmlUnknown
FeedElement
RemoveStep
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
IRecipeStep
ICloneable<IRecipeStep>
IEquatable<RemoveStep>
Inherited Members
FeedElement.FilterMismatch<T>(T)
FeedElement.FilterMismatch(IRecipeStep)
FeedElement.Equals(FeedElement)
FeedElement.IfZeroInstallVersion
FeedElement.IfZeroInstallVersionString
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class RemoveStep : FeedElement, IRecipeStep

Constructors

RemoveStep()

Declaration
public RemoveStep()

Properties

Path

The file or directory to be removed relative to the implementation root as a Unix-style path.

Declaration
public string Path { get; set; }
Property Value
Type Description
String

Methods

Clone()

Creates a deep copy of this RemoveStep instance.

Declaration
public IRecipeStep Clone()
Returns
Type Description
IRecipeStep

The new copy of the RemoveStep.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
FeedElement.Equals(Object)

Equals(RemoveStep)

Declaration
public bool Equals(RemoveStep other)
Parameters
Type Name Description
RemoveStep other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
FeedElement.GetHashCode()

Normalize(FeedUri)

Converts legacy elements, sets default values, etc..

Declaration
public void Normalize(FeedUri feedUri = null)
Parameters
Type Name Description
FeedUri feedUri

The feed the data was originally loaded from.

Exceptions
Type Condition
UriFormatException

Href is relative and feedUri is a remote URI.

ToString()

Returns the remove step in the form "Path". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(RemoveStep, RemoveStep)

Indicates whether the object on the left is equal to the object on the right.

Declaration
public static bool operator ==(RemoveStep left, RemoveStep right)
Parameters
Type Name Description
RemoveStep left

The left object

RemoveStep right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(RemoveStep, RemoveStep)

Indicates whether the object on the left is not equal to the object on the right.

Declaration
public static bool operator !=(RemoveStep left, RemoveStep right)
Parameters
Type Name Description
RemoveStep left

The left object

RemoveStep right

The right object

Returns
Type Description
Boolean

true if the objects are not equal; otherwise, false.

Implements

System.IEquatable<T>
System.IEquatable<T>
IRecipeStep
ICloneable<T>
System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher et al