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)


Private Function TryGetIndexFromKey ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean Implements IRowVariableModel.TryGetIndexFromKey
bool IRowVariableModel.TryGetIndexFromKey(
    Object key,
    out int vid
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.


Return Value

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


IRowVariableModel.TryGetIndexFromKey(Object, Int32%)

.NET Framework Security

See Also


HybridLocalSearchModel Class

Microsoft.SolverFoundation.Solvers Namespace