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)

'Declaration
Public Property Selected As Boolean 
	Get 
	Set
'Usage
Dim instance As SelectListItem 
Dim value As Boolean 

value = instance.Selected

instance.Selected = value

Property Value

Type: System.Boolean
true if the item is selected; otherwise, false.
Show: