PluginSolutionMapping.TryGetVid Method (Constraint, array<Object[], Int32, Int32%)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the row or variable index when passed a constraint, along with the indexes of the constraint, and a component part.

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


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


  • indexes
    Type: array<System.Object[]
    The indexes that are related to the constraint.
  • component
    Type: System.Int32
    The component part of the constraint.
  • vid
    Type: System.Int32%
    The row or variable index that is related to the constraint.

Return Value

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


Exception Condition

The constraint or indexes parameter is a null reference (Nothing in Visual Basic).


The first call for a constraint to TryGetVid, GetIndexes, or GetComponents is resource-intensive.

.NET Framework Security

See Also


PluginSolutionMapping Class

TryGetVid Overload

Microsoft.SolverFoundation.Services Namespace