ConstraintSolverSolution.TryGetValue 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 exists and its value is retrieved successfully.

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

public bool TryGetValue(
	CspTerm variable,
	out Object val
)

Parameters

variable
Type: Microsoft.SolverFoundation.Solvers.CspTerm
A variable for the CSP solver.
val
Type: System.Object%
A value for a variable.

Return Value

Type: System.Boolean
true if a variable exists and its value is retrieved successfully; otherwise, false.

Show: