Set Class

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines a set of values in a domain.


Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

type Set =  class end

The Set type exposes the following members.

Public methodSet(Term[])Infrastructure. Initializes a new instance of the Set class.
Public methodSet(Domain, String)Initializes a new instance of the Set class. Creates a new set.
Public methodSet(Term, Term, Term)Infrastructure. Initializes a new instance of the Set class.
Public methodSet(Term[], Domain, String) Creates a set with fixed values.

Public propertyIsConstantIndicates whether the values for the Set were established upon creation.
Public propertyIsLockedIndicates whether additional values may be added to a Set, for example by data binding operations on Parameters.
Public propertyNameGets the name of a set.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetBinding(T) Binds the set to data. The data must be in the form of a sequence of objects, where each object has a property for the value for a set element. The data is read each time Context.Solve() is called.
Public methodToStringConverts a set to its equivalent string representation. (Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.