CompactQuasiNewtonModel.GetKeyFromIndex Method
Returns the key that is associated with a variable index.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function GetKeyFromIndex ( _
vid As Integer _
) As Object
public Object GetKeyFromIndex(
int vid
)
public:
virtual Object^ GetKeyFromIndex(
int vid
) sealed
abstract GetKeyFromIndex :
vid:int -> Object
override GetKeyFromIndex :
vid:int -> Object
public final function GetKeyFromIndex(
vid : int
) : Object
Parameters
- vid
Type: System.Int32
The variable index.
Return Value
Type: System.Object
The key that is associated with the variable index.
Implements
IRowVariableModel.GetKeyFromIndex(Int32)
Exceptions
Exception | Condition |
---|---|
ArgumentException | The key is not found in the model. |
Remarks
The key might be nulla null reference (Nothing in Visual Basic).
.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.