HybridLocalSearchModel.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.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Private Function TryGetIndexFromKey ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean Implements IRowVariableModel.TryGetIndexFromKey
bool IRowVariableModel.TryGetIndexFromKey(
    Object key,
    out int vid
)
private:
virtual bool TryGetIndexFromKey(
    Object^ key, 
    [OutAttribute] int% vid
) sealed = IRowVariableModel::TryGetIndexFromKey
private abstract TryGetIndexFromKey : 
        key:Object * 
        vid:int byref -> bool 
private override TryGetIndexFromKey : 
        key:Object * 
        vid:int byref -> bool 
JScript does not support explicit interface implementations.

Parameters

Return Value

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

Implements

IRowVariableModel.TryGetIndexFromKey(Object, Int32%)

.NET Framework Security

See Also

Reference

HybridLocalSearchModel Class

Microsoft.SolverFoundation.Solvers Namespace