Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Selected Property
Collapse the table of content
Expand the table of content

SelectListItem.Selected Property


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

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

public bool Selected { get; set; }

Property Value

Type: System.Boolean

true if the item is selected; otherwise, false.

Return to top
© 2015 Microsoft