SelectList SelectList SelectList Class

Definition

Represents a list that lets users select a single item. This class is typically rendered as an HTML

<select>
element with the specified collection of SelectListItem objects.

public class SelectList : Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
type SelectList = class
    inherit MultiSelectList
Public Class SelectList
Inherits MultiSelectList
Inheritance

Constructors

SelectList(IEnumerable) SelectList(IEnumerable) SelectList(IEnumerable)
SelectList(IEnumerable, Object) SelectList(IEnumerable, Object) SelectList(IEnumerable, Object)
SelectList(IEnumerable, String, String) SelectList(IEnumerable, String, String) SelectList(IEnumerable, String, String)
SelectList(IEnumerable, String, String, Object) SelectList(IEnumerable, String, String, Object) SelectList(IEnumerable, String, String, Object)
SelectList(IEnumerable, String, String, Object, String) SelectList(IEnumerable, String, String, Object, String) SelectList(IEnumerable, String, String, Object, String)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, a selected value, and the data group field.

Properties

DataGroupField DataGroupField DataGroupField

Gets or sets the data group field.

(Inherited from MultiSelectList)
DataTextField DataTextField DataTextField Inherited from MultiSelectList
DataValueField DataValueField DataValueField Inherited from MultiSelectList
Items Items Items Inherited from MultiSelectList
SelectedValue SelectedValue SelectedValue
SelectedValues SelectedValues SelectedValues Inherited from MultiSelectList

Methods

GetEnumerator() GetEnumerator() GetEnumerator() Inherited from MultiSelectList

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() Inherited from MultiSelectList

Extension Methods

GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext)

Gets an instance of IWrapperProvider for the supplied type.

FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType)

Converts the generic IEnumerable<T> to a IEnumerable<T> and finds the first HtmlSymbol with type type.

GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation)

Applies to