Freigeben über


MultiSelectList Constructor (IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values.

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

Syntax

'Declaration
Public Sub New ( _
    items As IEnumerable, _
    selectedValues As IEnumerable _
)
public MultiSelectList(
    IEnumerable items,
    IEnumerable selectedValues
)
public:
MultiSelectList(
    IEnumerable^ items, 
    IEnumerable^ selectedValues
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The items parameter is null reference (Nothing in Visual Basic).

See Also

Reference

MultiSelectList Class

MultiSelectList Overload

System.Web.Mvc Namespace