CspComposite.AddConstraints 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 all composite-wise constraint functions added to a model are valid.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function AddConstraints ( _
ParamArray constraints As CspTerm() _
) As Boolean
public bool AddConstraints(
params CspTerm[] constraints
)
public:
bool AddConstraints(
... array<CspTerm^>^ constraints
)
member AddConstraints :
constraints:CspTerm[] -> bool
public function AddConstraints(
... constraints : CspTerm[]
) : boolean
Parameters
- constraints
Type: array<Microsoft.SolverFoundation.Solvers.CspTerm[]
Constraints to be added. Must be constructed using field terms.
Return Value
Type: System.Boolean
true if all composite-wise constraint functions added to a model are valid; otherwise, false.
.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.