Show / Hide Table of Contents

Class WorkingDir

Switches the working directory of a process on startup to a location within an implementation. Useful for supporting legacy Windows applications which do not properly locate their installation directory.

Inheritance
Object
XmlUnknown
FeedElement
WorkingDir
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<WorkingDir>
IEquatable<WorkingDir>
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 WorkingDir : FeedElement

Constructors

WorkingDir()

Declaration
public WorkingDir()

Properties

Source

The relative path of the directory in the implementation to set as the working directory. Defaults to use the root of the implementation if unset.

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

Methods

Clone()

Creates a deep copy of this WorkingDir instance.

Declaration
public WorkingDir Clone()
Returns
Type Description
WorkingDir

The new copy of the WorkingDir.

Equals(Object)

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

Equals(WorkingDir)

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

GetHashCode()

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

ToString()

Returns the binding in the form "Source". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(WorkingDir, WorkingDir)

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

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

The left object

WorkingDir right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(WorkingDir, WorkingDir)

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

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

The left object

WorkingDir right

The right object

Returns
Type Description
Boolean

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

Implements

System.IEquatable<T>
System.IEquatable<T>
ICloneable<T>
System.IEquatable<T>

See Also

WorkingDir
In This Article
Back to top Copyright Bastian Eicher et al