Export (0) Print
Expand All

SelectListItem Class

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

System.Object
  System.Web.Mvc.SelectListItem

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public class SelectListItem

The SelectListItem type exposes the following members.

  NameDescription
Public methodSelectListItemInitializes a new instance of the SelectListItem class.
Top

  NameDescription
Public propertyDisabledGets or sets a value that indicates whether this SelectListItem is disabled.
Public propertyGroupRepresents 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.
Public propertySelectedGets or sets a value that indicates whether this SelectListItem is selected.
Public propertyTextGets or sets the text of the selected item.
Public propertyValueGets or sets the value of the selected item.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft