MultiSelectList Class
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.
Represents a list that lets users select multiple items.
This class is typically rendered as an HTML <select multiple="multiple">
element with the specified collection
of SelectListItem objects.
public ref class MultiSelectList : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Rendering::SelectListItem ^>
public class MultiSelectList : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>
type MultiSelectList = class
interface seq<SelectListItem>
interface IEnumerable
Public Class MultiSelectList
Implements IEnumerable(Of SelectListItem)
- Inheritance
-
MultiSelectList
- Derived
- Implements
Constructors
MultiSelectList(IEnumerable, IEnumerable) |
Initialize a new instance of MultiSelectList. |
MultiSelectList(IEnumerable, String, String, IEnumerable, 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, the selected values, and the data group field. |
MultiSelectList(IEnumerable, String, String, IEnumerable) |
Initialize a new instance of MultiSelectList. |
MultiSelectList(IEnumerable, String, String) |
Initialize a new instance of MultiSelectList. |
MultiSelectList(IEnumerable) |
Initialize a new instance of MultiSelectList. |
Properties
DataGroupField |
Gets the data group field. |
DataTextField |
Gets the data text field. |
DataValueField |
Gets the data value field. |
Items |
Gets the items. |
SelectedValues |
Gets the selected values. |
Methods
GetEnumerator() | Returns an enumerator that iterates through the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |