TryGetIndexFromKey Method

ILinearModel.TryGetIndexFromKey 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 a value that indicates whether a variable index exists for the specified key.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

bool TryGetIndexFromKey(
	Object key,
	out int vid


Type: System.Object
A key for a value.
Type: System.Int32%
The variable index.

Return Value

Type: System.Boolean
true if the variable exists based on key; otherwise, false.

© 2016 Microsoft