Export (0) Print
Expand All

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)

public MultiSelectList(
	IEnumerable items,
	IEnumerable selectedValues
)

Parameters

items
Type: System.Collections.IEnumerable

The items.

selectedValues
Type: System.Collections.IEnumerable

The selected values.

ExceptionCondition
ArgumentNullException

The items parameter is null.

Show:
© 2015 Microsoft