Class ExecutableInVar
Make a chosen Implementation available as an executable path in an environment variable.
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class ExecutableInVar : ExecutableInBinding
Constructors
ExecutableInVar()
Declaration
public ExecutableInVar()
Properties
Name
The name of the environment variable.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Clone()
Creates a deep copy of this ExecutableInVar instance.
Declaration
public override Binding Clone()
Returns
Type | Description |
---|---|
Binding | The new copy of the ExecutableInVar. |
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(ExecutableInVar)
Declaration
public bool Equals(ExecutableInVar other)
Parameters
Type | Name | Description |
---|---|---|
ExecutableInVar | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Normalize()
Converts legacy elements, sets default values, etc..
Declaration
public override void Normalize()
Overrides
Exceptions
Type | Condition |
---|---|
InvalidDataException | A required property is not set or invalid. |
ToString()
Returns the binding in the form "Name = Command". Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(ExecutableInVar, ExecutableInVar)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(ExecutableInVar left, ExecutableInVar right)
Parameters
Type | Name | Description |
---|---|---|
ExecutableInVar | left | The left object |
ExecutableInVar | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Inequality(ExecutableInVar, ExecutableInVar)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(ExecutableInVar left, ExecutableInVar right)
Parameters
Type | Name | Description |
---|---|---|
ExecutableInVar | left | The left object |
ExecutableInVar | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |