Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MultiSelectList Constructor (IEnumerable, String, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, and the data text field.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public MultiSelectList(
	IEnumerable items,
	string dataValueField,
	string dataTextField
)

Parameters

items
Type: System.Collections.IEnumerable
The items.
dataValueField
Type: System.String
The data value field.
dataTextField
Type: System.String
The data text field.
ExceptionCondition
ArgumentNullException

The items parameter is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.