ITermModel.AddOperation Method (TermModelOperation, Int32%, Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds an operation row for a two-operand operation to a model.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)


Function AddOperation ( _
    op As TermModelOperation, _
    <OutAttribute> ByRef vidNew As Integer, _
    vid1 As Integer, _
    vid2 As Integer _
) As Boolean
bool AddOperation(
    TermModelOperation op,
    out int vidNew,
    int vid1,
    int vid2
bool AddOperation(
    TermModelOperation op, 
    [OutAttribute] int% vidNew, 
    int vid1, 
    int vid2
abstract AddOperation : 
        op:TermModelOperation * 
        vidNew:int byref * 
        vid1:int * 
        vid2:int -> bool 
function AddOperation(
    op : TermModelOperation, 
    vidNew : int, 
    vid1 : int, 
    vid2 : int
) : boolean


  • vidNew
    Type: System.Int32%
    The index of the new row, or the index of an existing row that has the same value as the new row.
  • vid1
    Type: System.Int32
    The first input argument for the operation.
  • vid2
    Type: System.Int32
    The second input argument for the operation.

Return Value

Type: System.Boolean
true if a new row is added; false if an existing row is re-used.


Examples of two-operand operations include the following: Plus, Minus, Times, Quotient, Power, Max, Min, And, Or, Equal, Unequal, Greater, Less, GreaterEqual, and LessEqual.

.NET Framework Security

See Also


ITermModel Interface

AddOperation Overload

Microsoft.SolverFoundation.Services Namespace