UnconstrainedNonlinearModel.TryGetIndexFromKey Method

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

Attempts to get the variable index based on the specified key

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


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


Return Value

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


IRowVariableModel.TryGetIndexFromKey(Object, Int32%)

.NET Framework Security

See Also


UnconstrainedNonlinearModel Class

Microsoft.SolverFoundation.Solvers Namespace