PluginSolutionMapping.GetIndexes Method (Constraint)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the indexes of a constraint.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overrides Function GetIndexes ( _
constraint As Constraint _
) As IEnumerable(Of Object())
public override IEnumerable<Object[]> GetIndexes(
Constraint constraint
)
public:
virtual IEnumerable<array<Object^>^>^ GetIndexes(
Constraint^ constraint
) override
abstract GetIndexes :
constraint:Constraint -> IEnumerable<Object[]>
override GetIndexes :
constraint:Constraint -> IEnumerable<Object[]>
public override function GetIndexes(
constraint : Constraint
) : IEnumerable<Object[]>
Parameters
- constraint
Type: Microsoft.SolverFoundation.Services.Constraint
The constraint.
Return Value
Type: System.Collections.Generic.IEnumerable<array<Object[]>
A collection of indexes related to the constraint.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The constraint parameter is a null reference (Nothing in Visual Basic). |
NotSupportedException | The model is stochastic. Mapping of stochastic models is not supported. |
Remarks
The first call for a constraint to TryGetVid, GetIndexes, or GetComponents is resource-intensive.
.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.