Class WorkingDir
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
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.
public sealed class WorkingDir : FeedElement, IEquatable<FeedElement>, ICloneable<WorkingDir>, IEquatable<WorkingDir>
- Inheritance
-
objectWorkingDir
- Implements
- Inherited Members
Constructors
WorkingDir()
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.
public string? Source { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this WorkingDir instance.
public WorkingDir Clone()
Returns
- WorkingDir
The new copy of the WorkingDir.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns the binding in the form "Source". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(WorkingDir?, WorkingDir?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(WorkingDir? left, WorkingDir? right)
Parameters
leftWorkingDirThe left object
rightWorkingDirThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(WorkingDir?, WorkingDir?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(WorkingDir? left, WorkingDir? right)
Parameters
leftWorkingDirThe left object
rightWorkingDirThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.