Table of Contents

Class SelectListGroup

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents the optgroup HTML element and its attributes. In a select list, multiple groups with the same name are supported. They are compared with reference equality.

public class SelectListGroup
Inheritance
SelectListGroup
Inherited Members

Constructors

SelectListGroup()

public SelectListGroup()

Properties

Disabled

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

public bool Disabled { get; set; }

Property Value

bool

Name

Represents the value of the optgroup's label.

public string Name { get; set; }

Property Value

string