Decision.SetBinding<T> Method (IEnumerable<T>, String)

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

Initializes a new instance of the Decision class.

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


Public Sub SetBinding(Of T) ( _
    binding As IEnumerable(Of T), _
    valueField As String _
public void SetBinding<T>(
    IEnumerable<T> binding,
    string valueField
generic<typename T>
void SetBinding(
    IEnumerable<T>^ binding, 
    String^ valueField
member SetBinding : 
        binding:IEnumerable<'T> * 
        valueField:string -> unit 
JScript does not support generic types or methods.

Type Parameters

  • T


  • valueField
    Type: System.String
    The name of the property of each input object that is assigned the value of the data decisions.


Exception Condition

A property or field cannot be found, or the property or field is not writeable.


A decision does not need to be bound to data. If it is, the data must be in the form of a sequence of objects, where each object has properties for the value and index(es) of the data element. The sequence must contain one object for each decision. The data is written when the Context.PropagateDecisions method is called.

.NET Framework Security

See Also


Decision Class

SetBinding Overload

Microsoft.SolverFoundation.Services Namespace