IRowVariableModel.GetIndexFromKey Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the index that is associated with a key.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Function GetIndexFromKey ( _
key As Object _
) As Integer
int GetIndexFromKey(
Object key
)
int GetIndexFromKey(
Object^ key
)
abstract GetIndexFromKey :
key:Object -> int
function GetIndexFromKey(
key : Object
) : int
Parameters
- key
Type: System.Object
The key value.
Return Value
Type: System.Int32
The variable index.
Exceptions
Exception | Condition |
---|---|
KeyNotFoundException | The key is not 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.