Class GenericBinding
Zero Install will not know how to run a program using generic bindings itself, but it will include them in any selections documents it creates, which can then be executed by your custom code.
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class GenericBinding : ExecutableInBinding
Constructors
GenericBinding()
Declaration
public GenericBinding()
Properties
Path
If your binding needs a path within the selected implementation, it is suggested that the path attribute be used for this. Other attributes and child elements should be namespaced to avoid collisions.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Clone()
Creates a deep copy of this GenericBinding instance.
Declaration
public override Binding Clone()
Returns
Type | Description |
---|---|
Binding | The new copy of the GenericBinding. |
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(GenericBinding)
Declaration
public bool Equals(GenericBinding other)
Parameters
Type | Name | Description |
---|---|---|
GenericBinding | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Returns the binding in the form "Path = Command". Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(GenericBinding, GenericBinding)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(GenericBinding left, GenericBinding right)
Parameters
Type | Name | Description |
---|---|---|
GenericBinding | left | The left object |
GenericBinding | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Inequality(GenericBinding, GenericBinding)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(GenericBinding left, GenericBinding right)
Parameters
Type | Name | Description |
---|---|---|
GenericBinding | left | The left object |
GenericBinding | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |