ILinearModel.AddRow Method (Object, SpecialOrderedSetType, Int32%)

Solver Foundation 3.0

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

Attempts to add a row to the model and returns a value that indicates whether a reference row for a special ordered set is added to a model.

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

bool AddRow(
	Object key,
	SpecialOrderedSetType sos,
	out int vidRow


Type: System.Object
A key for the row.
Type: Microsoft.SolverFoundation.Services.SpecialOrderedSetType
A special ordered set.
Type: System.Int32%
A row identifier.

Return Value

Type: System.Boolean
true if the row is added to the model successfully; otherwise, false.

Each special ordered set has one reference row.