RowVariableModel.TryGetIndexFromKey Method

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

Attempts to return the variable index that is associated with the specified key.

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

Syntax

'Declaration
Public Overridable Function TryGetIndexFromKey ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean
public virtual bool TryGetIndexFromKey(
    Object key,
    out int vid
)
public:
virtual bool TryGetIndexFromKey(
    Object^ key, 
    [OutAttribute] int% vid
)
abstract TryGetIndexFromKey : 
        key:Object * 
        vid:int byref -> bool 
override TryGetIndexFromKey : 
        key:Object * 
        vid:int byref -> bool 
public function TryGetIndexFromKey(
    key : Object, 
    vid : int
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the variable exists; otherwise, false.

Implements

IRowVariableModel.TryGetIndexFromKey(Object, Int32%)

.NET Framework Security

See Also

Reference

RowVariableModel Class

Microsoft.SolverFoundation.Services Namespace