ConstraintSystem.TryGetVariableFromKey Method

Solver Foundation 3.0

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

Returns a value that indicates whether a variable is retrieved by its key.

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

public bool TryGetVariableFromKey(
	Object key,
	out CspTerm term
)

Parameters

key
Type: System.Object
A key for a variable.
term
Type: Microsoft.SolverFoundation.Solvers.CspTerm%
A variable.

Return Value

Type: System.Boolean
true if a variable is retrieved by its key; otherwise, false.

Show: