Class Constraint
Restricts the set of versions from which the injector may choose an Implementation.
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public class Constraint : FeedElement
Constructors
Constraint()
Declaration
public Constraint()
Properties
Before
This version and all later versions are unsuitable.
Declaration
public ImplementationVersion Before { get; set; }
Property Value
Type | Description |
---|---|
ImplementationVersion |
BeforeString
Used for XML serialization.
Declaration
public string BeforeString { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
NotBefore
This is the lowest-numbered version that can be chosen.
Declaration
public ImplementationVersion NotBefore { get; set; }
Property Value
Type | Description |
---|---|
ImplementationVersion |
NotBeforeString
Used for XML serialization.
Declaration
public string NotBeforeString { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Methods
Clone()
Creates a copy of this Constraint instance.
Declaration
public Constraint Clone()
Returns
Type | Description |
---|---|
Constraint | The new copy of the Constraint. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(Constraint)
Declaration
public bool Equals(Constraint other)
Parameters
Type | Name | Description |
---|---|---|
Constraint | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Returns the constraint in the form "NotBefore =< Ver %lt; Before". Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(Constraint, Constraint)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(Constraint left, Constraint right)
Parameters
Type | Name | Description |
---|---|---|
Constraint | left | The left object |
Constraint | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Inequality(Constraint, Constraint)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(Constraint left, Constraint right)
Parameters
Type | Name | Description |
---|---|---|
Constraint | left | The left object |
Constraint | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |