ILinearModel.GetIndexFromKey Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns an index that corresponds to the specified 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

Return Value

Type: System.Int32
A variable index.

Exceptions

Exception Condition
KeyNotFoundException

The key is not in the model.

.NET Framework Security

See Also

Reference

ILinearModel Interface

Microsoft.SolverFoundation.Services Namespace