CompactQuasiNewtonModel.GetIndexFromKey Method
Returns the variable index that is associated with a key.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function GetIndexFromKey ( _
key As Object _
) As Integer
public int GetIndexFromKey(
Object key
)
public:
virtual int GetIndexFromKey(
Object^ key
) sealed
abstract GetIndexFromKey :
key:Object -> int
override GetIndexFromKey :
key:Object -> int
public final function GetIndexFromKey(
key : Object
) : int
Parameters
- key
Type: System.Object
The key value.
Return Value
Type: System.Int32
The variable index.
Implements
IRowVariableModel.GetIndexFromKey(Object)
Exceptions
Exception | Condition |
---|---|
KeyNotFoundException | The key is not found in the model. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.