BinomialDistributionParameter.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 parameters to data.

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


Public Sub SetBinding(Of T) ( _
    binding As IEnumerable(Of T), _
    numberOfTrialsField As String, _
    successProbabilityField As String, _
    ParamArray indexFields As String() _
public void SetBinding<T>(
    IEnumerable<T> binding,
    string numberOfTrialsField,
    string successProbabilityField,
    params string[] indexFields
generic<typename T>
void SetBinding(
    IEnumerable<T>^ binding, 
    String^ numberOfTrialsField, 
    String^ successProbabilityField, 
    ... array<String^>^ indexFields
member SetBinding : 
        binding:IEnumerable<'T> * 
        numberOfTrialsField:string * 
        successProbabilityField:string * 
        indexFields:string[] -> unit 
JScript does not support generic types or methods.

Type Parameters

  • T


  • numberOfTrialsField
    Type: System.String
    The name of the property of each input object that contains the number of trials for the distribution.
  • successProbabilityField
    Type: System.String
    The name of the property of each input object that contains the success probability for the distribution.
  • indexFields
    Type: array<System.String[]
    The names of the properties of each input object that contains the indexes of the data elements, one for each index set which was provided when the parameter was created.


Exception Condition

A property or field cannot be found.

.NET Framework Security

See Also


BinomialDistributionParameter Class

SetBinding Overload

Microsoft.SolverFoundation.Services Namespace