Model.CreateInstance Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates an instance of a model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function CreateInstance ( _
name As String _
) As SubmodelInstance
public SubmodelInstance CreateInstance(
string name
)
public:
SubmodelInstance^ CreateInstance(
String^ name
)
member CreateInstance :
name:string -> SubmodelInstance
public function CreateInstance(
name : String
) : SubmodelInstance
Parameters
- name
Type: System.String
The name of the model.
Return Value
Type: Microsoft.SolverFoundation.Services.SubmodelInstance
An instance of the model, including all decisions, constraints, and goals.
Remarks
The root model created by the CreateModel() method cannot call the CreateInstance method.
.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.