ConstraintSolverSolution.TryGetValue Method
[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)
Syntax
'Declaration
Public Function TryGetValue ( _
variable As CspTerm, _
<OutAttribute> ByRef val As Object _
) As Boolean
public bool TryGetValue(
CspTerm variable,
out Object val
)
public:
bool TryGetValue(
CspTerm^ variable,
[OutAttribute] Object^% val
)
member TryGetValue :
variable:CspTerm *
val:Object byref -> bool
public function TryGetValue(
variable : CspTerm,
val : Object
) : boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.