MultiSelectList MultiSelectList MultiSelectList Class

Definition

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 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
MultiSelectListMultiSelectListMultiSelectList
Derived
Implements

Constructors

MultiSelectList(IEnumerable) MultiSelectList(IEnumerable) MultiSelectList(IEnumerable)
MultiSelectList(IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable)
MultiSelectList(IEnumerable, String, String) MultiSelectList(IEnumerable, String, String) MultiSelectList(IEnumerable, String, String)
MultiSelectList(IEnumerable, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable)
MultiSelectList(IEnumerable, String, String, IEnumerable, String) MultiSelectList(IEnumerable, String, String, IEnumerable, String) 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.

Properties

DataGroupField DataGroupField DataGroupField

Gets or sets the data group field.

DataTextField DataTextField DataTextField
DataValueField DataValueField DataValueField
Items Items Items
SelectedValues SelectedValues SelectedValues

Methods

GetEnumerator() GetEnumerator() GetEnumerator()

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Applies to