MultiSelectList Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MultiSelectList(IEnumerable) |
Initializes a new instance of the MultiSelectList class by using the specified items to include in the list. |
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) |
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, 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, 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(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, 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, 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, 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)
Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.
public MultiSelectList(System.Collections.IEnumerable items);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable)
Parameters
- items
- IEnumerable
The items.
Exceptions
The items
parameter is null.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, string dataGroupField, System.Collections.IEnumerable selectedValues, System.Collections.IEnumerable disabledValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * string * System.Collections.IEnumerable * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, dataGroupField As String, selectedValues As IEnumerable, disabledValues As IEnumerable)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- dataValueField
- String
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
- String
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
- String
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
- IEnumerable
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
- IEnumerable
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, string dataGroupField, System.Collections.IEnumerable selectedValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * string * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, dataGroupField As String, selectedValues As IEnumerable)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- dataValueField
- String
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
- String
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
- String
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
- IEnumerable
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues, System.Collections.IEnumerable disabledValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * System.Collections.IEnumerable * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, selectedValues As IEnumerable, disabledValues As IEnumerable)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- dataValueField
- String
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
- String
The data text field. Used to match the Text property of the corresponding SelectListItem.
- selectedValues
- IEnumerable
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
- IEnumerable
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, string dataGroupField);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * string -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, dataGroupField As String)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- dataValueField
- String
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
- String
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
- String
The data group field. Used to match the Group property of the corresponding SelectListItem.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, string dataGroupField, System.Collections.IEnumerable selectedValues, System.Collections.IEnumerable disabledValues, System.Collections.IEnumerable disabledGroups);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * string * System.Collections.IEnumerable * System.Collections.IEnumerable * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, dataGroupField As String, selectedValues As IEnumerable, disabledValues As IEnumerable, disabledGroups As IEnumerable)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- dataValueField
- String
The data value field. Used to match the Value property of the corresponding SelectListItem.
- dataTextField
- String
The data text field. Used to match the Text property of the corresponding SelectListItem.
- dataGroupField
- String
The data group field. Used to match the Group property of the corresponding SelectListItem.
- selectedValues
- IEnumerable
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
- IEnumerable
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
- disabledGroups
- IEnumerable
The disabled groups. Used to match the Disabled property of the corresponding SelectListGroup.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String)
Parameters
- items
- IEnumerable
The items.
- dataValueField
- String
The data value field.
- dataTextField
- String
The data text field.
Exceptions
The items
parameter is null.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, System.Collections.IEnumerable selectedValues, System.Collections.IEnumerable disabledValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * System.Collections.IEnumerable * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, selectedValues As IEnumerable, disabledValues As IEnumerable)
Parameters
- items
- IEnumerable
The items used to build each SelectListItem of the list.
- selectedValues
- IEnumerable
The selected values field. Used to match the Selected property of the corresponding SelectListItem.
- disabledValues
- IEnumerable
The disabled values. Used to match the Disabled property of the corresponding SelectListItem.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, System.Collections.IEnumerable selectedValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, selectedValues As IEnumerable)
Parameters
- items
- IEnumerable
The items.
- selectedValues
- IEnumerable
The selected values.
Exceptions
The items
parameter is null.
Applies to
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.
public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues);
new System.Web.Mvc.MultiSelectList : System.Collections.IEnumerable * string * string * System.Collections.IEnumerable -> System.Web.Mvc.MultiSelectList
Public Sub New (items As IEnumerable, dataValueField As String, dataTextField As String, selectedValues As IEnumerable)
Parameters
- items
- IEnumerable
The items.
- dataValueField
- String
The data value field.
- dataTextField
- String
The data text field.
- selectedValues
- IEnumerable
The selected values.
Exceptions
The items
parameter is null.