This topic has not yet been rated - Rate this topic

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.

  Name Description
Public method SelectListItem Initializes a new instance of the SelectListItem class.
Top
  Name Description
Public property Selected Gets or sets a value that indicates whether this SelectListItem is selected.
Public property Text Gets or sets the text of the selected item.
Public property Value Gets or sets the value of the selected item.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (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.
Did you find this helpful?
(1500 characters remaining)