PluginSolutionMapping.TryGetVid Method (Goal, 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 that is associated with a specified goal.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overrides Function TryGetVid ( _
goal As Goal, _
<OutAttribute> ByRef vid As Integer _
) As Boolean
public override bool TryGetVid(
Goal goal,
out int vid
)
public:
virtual bool TryGetVid(
Goal^ goal,
[OutAttribute] int% vid
) override
abstract TryGetVid :
goal:Goal *
vid:int byref -> bool
override TryGetVid :
goal:Goal *
vid:int byref -> bool
public override function TryGetVid(
goal : Goal,
vid : int
) : boolean
Parameters
- goal
Type: Microsoft.SolverFoundation.Services.Goal
A goal.
- vid
Type: System.Int32%
The row or variable index that is related to the goal.
Return Value
Type: System.Boolean
true if the goal is mapped to a row or variable index; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The goal parameter is a null reference (Nothing in Visual Basic). |
.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.