Show / Hide Table of Contents

Class Constraint

Restricts the set of versions from which the injector may choose an Implementation.

Inheritance
Object
XmlUnknown
FeedElement
Constraint
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<Constraint>
IEquatable<Constraint>
Inherited Members
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 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
Before

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
NotBefore

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
FeedElement.Equals(Object)

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

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.

Implements

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