TermModel.AddRow Method

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

Adds a row to a model.

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

Syntax

'Declaration
Public Overrides Function AddRow ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean
public override bool AddRow(
    Object key,
    out int vid
)
public:
virtual bool AddRow(
    Object^ key, 
    [OutAttribute] int% vid
) override
abstract AddRow : 
        key:Object * 
        vid:int byref -> bool 
override AddRow : 
        key:Object * 
        vid:int byref -> bool 
public override function AddRow(
    key : Object, 
    vid : int
) : boolean

Parameters

  • key
    Type: System.Object
    Optional. The key for the row, or nulla null reference (Nothing in Visual Basic).
  • vid
    Type: System.Int32%
    The index of the new row or of an existing row that has the same key.

Return Value

Type: System.Boolean
true if a new variable is added; false if an existing variable has the specified key.

Implements

IRowVariableModel.AddRow(Object, Int32%)
IRowVariableModel.AddRow(Object, Int32%)

.NET Framework Security

See Also

Reference

TermModel Class

Microsoft.SolverFoundation.Services Namespace