MultiSelectList Class
Represents a list of items that users can select more than one item from.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The MultiSelectList type exposes the following members.
| 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, 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. |
| Name | Description | |
|---|---|---|
![]() | DataTextField | Gets or sets the data text field. |
![]() | DataValueField | Gets or sets the data value field. |
![]() | Items | Gets or sets the items in the list. |
![]() | SelectedValues | Gets or sets the selected values. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator | Returns an enumerator can be used to iterate through a collection. |
Show:
.gif?cs-save-lang=1&cs-lang=cpp)
.gif?cs-save-lang=1&cs-lang=cpp)
.gif?cs-save-lang=1&cs-lang=cpp)
.gif?cs-save-lang=1&cs-lang=cpp)
.gif?cs-save-lang=1&cs-lang=cpp)