SolutionMapping.TryGetConstraint Method

[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 row identifier is mapped to a constraint.

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


Public MustOverride Function TryGetConstraint ( _
    vid As Integer, _
    <OutAttribute> ByRef constraint As Constraint, _
    <OutAttribute> ByRef indexes As Object(), _
    <OutAttribute> ByRef component As Integer _
) As Boolean
public abstract bool TryGetConstraint(
    int vid,
    out Constraint constraint,
    out Object[] indexes,
    out int component
virtual bool TryGetConstraint(
    int vid, 
    [OutAttribute] Constraint^% constraint, 
    [OutAttribute] array<Object^>^% indexes, 
    [OutAttribute] int% component
) abstract
abstract TryGetConstraint : 
        vid:int * 
        constraint:Constraint byref * 
        indexes:Object[] byref * 
        component:int byref -> bool 
public abstract function TryGetConstraint(
    vid : int, 
    constraint : Constraint, 
    indexes : Object[], 
    component : int
) : boolean


  • indexes
    Type: array<System.Object[]%
    The indexes that are related to the constraint.
  • component
    Type: System.Int32%
    A component of the constraint.

Return Value

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

.NET Framework Security

See Also


SolutionMapping Class

Microsoft.SolverFoundation.Services Namespace