HybridLocalSearchModel.IRowVariableModel.AddVariable Method

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

Adds a user variable to a model.

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

Syntax

'Declaration
Private Function AddVariable ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean Implements IRowVariableModel.AddVariable
bool IRowVariableModel.AddVariable(
    Object key,
    out int vid
)
private:
virtual bool AddVariable(
    Object^ key, 
    [OutAttribute] int% vid
) sealed = IRowVariableModel::AddVariable
private abstract AddVariable : 
        key:Object * 
        vid:int byref -> bool 
private override AddVariable : 
        key:Object * 
        vid:int byref -> bool 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean
true if the user variable is added to the model successfully; false if the model already includes a user variable that is referenced by key or if the model already includes a row that is referenced by key.

Implements

IRowVariableModel.AddVariable(Object, Int32%)

.NET Framework Security

See Also

Reference

HybridLocalSearchModel Class

Microsoft.SolverFoundation.Solvers Namespace