SelectListGroup Class

Summary

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.

Syntax

public class SelectListGroup

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Rendering.SelectListGroup

Properties

Disabled()

Gets or sets a value that indicates whether this [Microsoft.AspNet.Mvc.Rendering.SelectListGroup](Microsoft.AspNet.Mvc.Rendering.SelectListGroup.yml) is disabled.

Return type:System.Boolean
public bool Disabled { get; set; }
Name()

Represents the value of the optgroup’s label.

Return type:System.String
public string Name { get; set; }