PluginSolutionMapping.TryGetConstraint Method
[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)
Syntax
'Declaration
Public Overrides Function TryGetConstraint ( _
vid As Integer, _
<OutAttribute> ByRef constraint As Constraint, _
<OutAttribute> ByRef indexes As Object(), _
<OutAttribute> ByRef component As Integer _
) As Boolean
public override bool TryGetConstraint(
int vid,
out Constraint constraint,
out Object[] indexes,
out int component
)
public:
virtual bool TryGetConstraint(
int vid,
[OutAttribute] Constraint^% constraint,
[OutAttribute] array<Object^>^% indexes,
[OutAttribute] int% component
) override
abstract TryGetConstraint :
vid:int *
constraint:Constraint byref *
indexes:Object[] byref *
component:int byref -> bool
override TryGetConstraint :
vid:int *
constraint:Constraint byref *
indexes:Object[] byref *
component:int byref -> bool
public override function TryGetConstraint(
vid : int,
constraint : Constraint,
indexes : Object[],
component : int
) : boolean
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: array<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.
Remarks
The caller must not change the indexes array.
.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.