MultiSelectList Constructor

 

Initializes a new instance of the MultiSelectList class.

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

NameDescription
System_CAPS_pubmethodMultiSelectList(IEnumerable^)

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

System_CAPS_pubmethodMultiSelectList(IEnumerable^, IEnumerable^)

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

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

System_CAPS_pubmethodMultiSelectList(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.

Return to top

MultiSelectList Constructor (IEnumerable^)

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

public:
MultiSelectList(
	IEnumerable^ items
)

Parameters

items
Type: System.Collections::IEnumerable^

The items.

Exception Condition
ArgumentNullException

The items parameter is null.

Return to top

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.

public:
MultiSelectList(
	IEnumerable^ items,
	IEnumerable^ selectedValues
)

Parameters

items
Type: System.Collections::IEnumerable^

The items.

selectedValues
Type: System.Collections::IEnumerable^

The selected values.

Exception Condition
ArgumentNullException

The items parameter is null.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top
Show: