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