Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SelectListItem Class

 

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

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

System.Object
  System.Web.Mvc.SelectListItem

public class SelectListItem

NameDescription
System_CAPS_pubmethodSelectListItem()

Initializes a new instance of the SelectListItem class.

NameDescription
System_CAPS_pubpropertyDisabled

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

System_CAPS_pubpropertyGroup

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.

System_CAPS_pubpropertySelected

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

System_CAPS_pubpropertyText

Gets or sets the text of the selected item.

System_CAPS_pubpropertyValue

Gets or sets the value of the selected item.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show:
© 2015 Microsoft