UniformDistributionParameter.SetBinding<T> Method (IEnumerable<T>, String, String, array<String[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Binds the parameter to data using the specified properties.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Sub SetBinding(Of T) ( _
binding As IEnumerable(Of T), _
lowerBoundField As String, _
upperBoundField As String, _
ParamArray indexFields As String() _
)
public virtual void SetBinding<T>(
IEnumerable<T> binding,
string lowerBoundField,
string upperBoundField,
params string[] indexFields
)
public:
generic<typename T>
virtual void SetBinding(
IEnumerable<T>^ binding,
String^ lowerBoundField,
String^ upperBoundField,
... array<String^>^ indexFields
)
abstract SetBinding :
binding:IEnumerable<'T> *
lowerBoundField:string *
upperBoundField:string *
indexFields:string[] -> unit
override SetBinding :
binding:IEnumerable<'T> *
lowerBoundField:string *
upperBoundField:string *
indexFields:string[] -> unit
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- binding
Type: System.Collections.Generic.IEnumerable<T>
A sequence of objects, one for each data element.
- lowerBoundField
Type: System.String
The name of the property of each input object that contains the lower bound for the distribution.
- upperBoundField
Type: System.String
The name of the property of each input object that contains the upper bound for the distribution.
- indexFields
Type: array<System.String[]
The names of the properties of each input object that contain the indexes of the data elements, one for each index set that was provided when the parameter was created.
Remarks
Each parameter must be bound before attempting to solve the model. The data must be in the form of a sequence of objects, where each object has properties for the value and indexes of the data element. The data is read each time the Context.Solve method is called.
.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.