SelectList Constructor (IEnumerable, Object)

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)

Syntax

'Declaration
Public Sub New ( _
    items As IEnumerable, _
    selectedValue As Object _
)
'Usage
Dim items As IEnumerable
Dim selectedValue As Object

Dim instance As New SelectList(items, selectedValue)
public SelectList(
    IEnumerable items,
    Object selectedValue
)
public:
SelectList(
    IEnumerable^ items, 
    Object^ selectedValue
)
public function SelectList(
    items : IEnumerable, 
    selectedValue : Object
)

Parameters

See Also

Reference

SelectList Class

SelectList Overload

System.Web.Mvc Namespace