CompactQuasiNewtonModel.TryGetIndexFromKey Method

Attempts to return the variable index based on a key.

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

Syntax

'Declaration
Public Function TryGetIndexFromKey ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean
public bool TryGetIndexFromKey(
    Object key,
    out int vid
)
public:
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

Parameters

Return Value

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

Implements

IRowVariableModel.TryGetIndexFromKey(Object, Int32%)

.NET Framework Security

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace