Model.Sum Method (Term, Term)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Computes the sum of the inputs.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Shared Function Sum ( _
term1 As Term, _
term2 As Term _
) As Term
public static Term Sum(
Term term1,
Term term2
)
public:
static Term^ Sum(
Term^ term1,
Term^ term2
)
static member Sum :
term1:Term *
term2:Term -> Term
public static function Sum(
term1 : Term,
term2 : Term
) : Term
Parameters
- term1
Type: Microsoft.SolverFoundation.Services.Term
A decision, formula, goal, or constraint.
- term2
Type: Microsoft.SolverFoundation.Services.Term
Another decision, formula, goal, or constraint.
Return Value
Type: Microsoft.SolverFoundation.Services.Term
The sum of the inputs.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The operation is not valid for the given inputs. |
.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.