Share via


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
Public method Set(array<Term[]) Infrastructure. Initializes a new instance of the Set class.
Public method Set(Domain, String) Initializes a new instance of the Set class. Creates a new set.
Public method Set(Term, Term, Term) Infrastructure. Initializes a new instance of the Set class.
Public method Set(array<Term[], Domain, String) Creates a set with fixed values.

Top

Properties

  Name Description
Public property IsConstant Indicates whether the values for the Set were established upon creation.
Public property IsLocked Indicates whether additional values may be added to a Set, for example by data binding operations on Parameters.
Public property Name Gets the name of a set.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.
Public method 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.

See Also

Reference

Microsoft.SolverFoundation.Services Namespace