PluginSolutionMapping.TryGetConstraint 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 constraint, the indexes of the constraint, and its component part.

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

public override bool TryGetConstraint(
	int vid,
	out Constraint constraint,
	out Object[] indexes,
	out int component
)

Parameters

vid
Type: System.Int32
The row index.
constraint
Type: Microsoft.SolverFoundation.Services.Constraint%
The constraint that is mapped to the row index.
indexes
Type: System.Object[]%
The indexes that are related to the constraint.
component
Type: System.Int32%
The component part of the constraint.

Return Value

Type: System.Boolean
true if the row index is mapped to a constraint; otherwise, false.

The caller must not change the indexes array.

Show: