SelectListItem SelectListItem SelectListItem Class

Definition

Represents the selected item in an instance of the SelectList class.

public class SelectListItem
type SelectListItem = class
Public Class SelectListItem
Inheritance
SelectListItemSelectListItemSelectListItem

Constructors

SelectListItem() SelectListItem() SelectListItem()

Initializes a new instance of the SelectListItem class.

Properties

Disabled Disabled Disabled

Gets or sets a value that indicates whether this SelectListItem is disabled.

Group Group Group

Represents the optgroup HTML element this item is wrapped into. In a select list, multiple groups with the same name are supported. They are compared with reference equality.

Selected Selected Selected

Gets or sets a value that indicates whether this SelectListItem is selected.

Text Text Text

Gets or sets the text of the selected item.

Value Value Value

Gets or sets the value of the selected item.

Applies to