SelectList Constructor (IEnumerable)
Initializes a new instance of the SelectList class by using the specified items for the list.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
items As IEnumerable _
)
public SelectList(
IEnumerable items
)
public:
SelectList(
IEnumerable^ items
)
Parameters
- items
Type: System.Collections.IEnumerable
The items.