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

Return Value

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

.NET Framework Security

See Also

Reference

ConstraintSolverSolution Class

Microsoft.SolverFoundation.Solvers Namespace