Export (0) Print
Expand All

SelectList Constructor (IEnumerable, String, String)

.NET Framework 4

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, and the data text field.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public SelectList(
	IEnumerable items,
	string dataValueField,
	string dataTextField
)

Parameters

items
Type: System.Collections.IEnumerable
The items.
dataValueField
Type: System.String
The data value field.
dataTextField
Type: System.String
The data text field.

Community Additions

ADD
Show:
© 2014 Microsoft