ConstraintSystem.CreateVariable Method (CspDomain, Object)

Solver Foundation 3.0

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

Creates a finite variable with the specified domain and key.

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

public CspTerm CreateVariable(
	CspDomain domain,
	Object key
)

Parameters

domain
Type: Microsoft.SolverFoundation.Solvers.CspDomain
A domain for the variable.
key
Type: System.Object
A key for the variable.

Return Value

Type: Microsoft.SolverFoundation.Solvers.CspTerm
A finite variable.

Show: