Share via


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

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

See Also

Reference

RowVariableModel Class

Microsoft.SolverFoundation.Services Namespace