Set.SetBinding<T> Method

Solver Foundation 3.0

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

Binds the set to data. The data must be in the form of a sequence of objects, where each object has a property for the value for a set element. The data is read each time Context.Solve() is called.

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

public void SetBinding<T>(
	IEnumerable<T> binding,
	string valueField

Type Parameters


The generic type.


Type: System.Collections.Generic.IEnumerable<T>
A sequence of objects, one for each set element.
Type: System.String
The name of the property of each input object which contains the value for a set element.