Share via


IRowVariableModel.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 associated with a key.

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

IRowVariableModel Interface

Microsoft.SolverFoundation.Services Namespace