Export (0) Print
Expand All

SelectList Constructor (IEnumerable, Object)

.NET Framework 4

Initializes a new instance of the SelectList class by using the specified items for the list and a selected value.

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

public SelectList(
	IEnumerable items,
	Object selectedValue
)

Parameters

items
Type: System.Collections.IEnumerable
The items.
selectedValue
Type: System.Object
The selected value.

Community Additions

ADD
Show:
© 2014 Microsoft