Model.AddParameter Method (Parameter)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a parameter to a model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub AddParameter ( _
parameter As Parameter _
)
public void AddParameter(
Parameter parameter
)
public:
void AddParameter(
Parameter^ parameter
)
member AddParameter :
parameter:Parameter -> unit
public function AddParameter(
parameter : Parameter
)
Parameters
- parameter
Type: Microsoft.SolverFoundation.Services.Parameter
A parameter to add to the model.
Exceptions
Exception | Condition |
---|---|
ModelException | The parameter has already been added to a different model. |
.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.