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

T

The generic type.

Parameters

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

Show: