RowVariableModel.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 specified key.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Function GetIndexFromKey ( _
key As Object _
) As Integer
public virtual int GetIndexFromKey(
Object key
)
public:
virtual int GetIndexFromKey(
Object^ key
)
abstract GetIndexFromKey :
key:Object -> int
override GetIndexFromKey :
key:Object -> int
public 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 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.