MultiSelectList Constructor
Initializes a new instance of the MultiSelectList class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | MultiSelectList(IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the specified items to include in the list. |
![]() | MultiSelectList(IEnumerable^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values. |
![]() | MultiSelectList(IEnumerable^, IEnumerable^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the selected values, the disabled values. |
![]() | MultiSelectList(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. |
![]() | MultiSelectList(IEnumerable^, String^, String^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the selected values. |
![]() | MultiSelectList(IEnumerable^, String^, String^, IEnumerable^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the disabled values. |
![]() | MultiSelectList(IEnumerable^, String^, String^, String^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the data group field. |
![]() | MultiSelectList(IEnumerable^, String^, String^, String^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, and the selected values. |
![]() | MultiSelectList(IEnumerable^, String^, String^, String^, IEnumerable^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, and the disabled values. |
![]() | MultiSelectList(IEnumerable^, String^, String^, String^, IEnumerable^, IEnumerable^, IEnumerable^) | Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, the disabled values, and the disabled groups. |
MultiSelectList Constructor (IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items.
| Exception | Condition |
|---|---|
| ArgumentNullException | The items parameter is null. |
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.
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values.
| Exception | Condition |
|---|---|
| ArgumentNullException | The items parameter is null. |
MultiSelectList Constructor (IEnumerable^, IEnumerable^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the selected values, the disabled values.
public:
MultiSelectList(
IEnumerable^ items,
IEnumerable^ selectedValues,
IEnumerable^ disabledValues
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
-
Type:
System.Collections::IEnumerable^
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
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.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The items parameter is null. |
MultiSelectList Constructor (IEnumerable^, String^, String^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the selected values.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
IEnumerable^ selectedValues
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items.
- dataValueField
-
Type:
System::String^
The data value field.
- dataTextField
-
Type:
System::String^
The data text field.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values.
| Exception | Condition |
|---|---|
| ArgumentNullException | The items parameter is null. |
MultiSelectList Constructor (IEnumerable^, String^, String^, IEnumerable^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the disabled values.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
IEnumerable^ selectedValues,
IEnumerable^ disabledValues
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- dataValueField
-
Type:
System::String^
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
-
Type:
System::String^
The data text field. Used to match the Text property of the corresponding SelectListItem.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
-
Type:
System.Collections::IEnumerable^
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
MultiSelectList Constructor (IEnumerable^, String^, String^, String^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the data group field.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
String^ dataGroupField
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- dataValueField
-
Type:
System::String^
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
-
Type:
System::String^
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
-
Type:
System::String^
The data group field. Used to match the Group property of the corresponding SelectListItem.
MultiSelectList Constructor (IEnumerable^, String^, String^, String^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, and the selected values.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
String^ dataGroupField,
IEnumerable^ selectedValues
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- dataValueField
-
Type:
System::String^
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
-
Type:
System::String^
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
-
Type:
System::String^
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
MultiSelectList Constructor (IEnumerable^, String^, String^, String^, IEnumerable^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, and the disabled values.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
String^ dataGroupField,
IEnumerable^ selectedValues,
IEnumerable^ disabledValues
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- dataValueField
-
Type:
System::String^
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
-
Type:
System::String^
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
-
Type:
System::String^
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
-
Type:
System.Collections::IEnumerable^
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
MultiSelectList Constructor (IEnumerable^, String^, String^, String^, IEnumerable^, IEnumerable^, IEnumerable^)
Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, the disabled values, and the disabled groups.
public:
MultiSelectList(
IEnumerable^ items,
String^ dataValueField,
String^ dataTextField,
String^ dataGroupField,
IEnumerable^ selectedValues,
IEnumerable^ disabledValues,
IEnumerable^ disabledGroups
)
Parameters
- items
-
Type:
System.Collections::IEnumerable^
The items used to build each SelectListItem of the list.
- dataValueField
-
Type:
System::String^
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
-
Type:
System::String^
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
-
Type:
System::String^
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
-
Type:
System.Collections::IEnumerable^
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
-
Type:
System.Collections::IEnumerable^
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
- disabledGroups
-
Type:
System.Collections::IEnumerable^
The disabled groups. Used to match the Disabled property of the corresponding SelectListGroup.
