Export (0) Print
Expand All

IRowVariableModel.GetIndexFromKey Method

Solver Foundation 3.0

[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)

int GetIndexFromKey(
	Object key
)

Parameters

key
Type: System.Object
The key value.

Return Value

Type: System.Int32
The variable index.

ExceptionCondition
KeyNotFoundException

The key is not in the model.

Show:
© 2014 Microsoft