Show / Hide Table of Contents

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.

Inheritance
Object
XmlUnknown
FeedElement
Binding
ExecutableInBinding
GenericBinding
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<Binding>
IEquatable<ExecutableInBinding>
IEquatable<GenericBinding>
Inherited Members
ExecutableInBinding.Equals(ExecutableInBinding)
ExecutableInBinding.Command
Binding.Normalize()
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 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
Binding.Clone()

Equals(Object)

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

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
ExecutableInBinding.GetHashCode()

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.

Implements

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