Set Class
[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.
Inheritance Hierarchy
System.Object
Microsoft.SolverFoundation.Services.Set
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public NotInheritable Class Set
public sealed class Set
public ref class Set sealed
[<Sealed>]
type Set = class end
public final class Set
The Set type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Set(array<Term[]) | Infrastructure. Initializes a new instance of the Set class. | |
Set(Domain, String) | Initializes a new instance of the Set class. Creates a new set. | |
Set(Term, Term, Term) | Infrastructure. Initializes a new instance of the Set class. | |
Set(array<Term[], Domain, String) | Creates a set with fixed values. |
Top
Properties
Name | Description | |
---|---|---|
IsConstant | Indicates whether the values for the Set were established upon creation. | |
IsLocked | Indicates whether additional values may be added to a Set, for example by data binding operations on Parameters. | |
Name | Gets the name of a set. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetBinding<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. | |
ToString | Converts a set to its equivalent string representation. (Overrides Object.ToString().) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.