SelectList 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 a single item.
This class is typically rendered as an HTML <select>
element with the specified collection
of SelectListItem objects.
public ref class SelectList : Microsoft::AspNetCore::Mvc::Rendering::MultiSelectList
public class SelectList : Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList
type SelectList = class
inherit MultiSelectList
Public Class SelectList
Inherits MultiSelectList
- Inheritance
Constructors
SelectList(IEnumerable, Object) |
Initialize a new instance of SelectList. |
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. |
SelectList(IEnumerable, String, String, Object) |
Initialize a new instance of SelectList. |
SelectList(IEnumerable, String, String) |
Initialize a new instance of SelectList. |
SelectList(IEnumerable) |
Initialize a new instance of SelectList. |
Properties
DataGroupField |
Gets the data group field. (Inherited from MultiSelectList) |
DataTextField |
Gets the data text field. (Inherited from MultiSelectList) |
DataValueField |
Gets the data value field. (Inherited from MultiSelectList) |
Items |
Gets the items. (Inherited from MultiSelectList) |
SelectedValue |
The selected value. |
SelectedValues |
Gets the selected values. (Inherited from MultiSelectList) |
Methods
GetEnumerator() | (Inherited from MultiSelectList) |
Explicit Interface Implementations
IEnumerable.GetEnumerator() | (Inherited from MultiSelectList) |