RowVariableModel.TryGetIndexFromKey Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Attempts to return the variable index that is associated with the specified key.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Function TryGetIndexFromKey ( _
key As Object, _
<OutAttribute> ByRef vid As Integer _
) As Boolean
public virtual bool TryGetIndexFromKey(
Object key,
out int vid
)
public:
virtual bool TryGetIndexFromKey(
Object^ key,
[OutAttribute] int% vid
)
abstract TryGetIndexFromKey :
key:Object *
vid:int byref -> bool
override TryGetIndexFromKey :
key:Object *
vid:int byref -> bool
public function TryGetIndexFromKey(
key : Object,
vid : int
) : boolean
Parameters
- key
Type: System.Object
The key value.
- vid
Type: System.Int32%
The variable index.
Return Value
Type: System.Boolean
true if the variable exists; otherwise, false.
Implements
IRowVariableModel.TryGetIndexFromKey(Object, Int32%)
.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.