UnconstrainedNonlinearModel.GetIndexFromKey Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Maps the variable index from the key. If not found, KeyNotFoundException will be thrown
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 to map to the variable index.
Return Value
Type: System.Int32
The variable index
Implements
IRowVariableModel.GetIndexFromKey(Object)
.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.