Version:
SelectListItem(string text, string value, bool selected, string optionGroup) Constructor
Syntax
public .ctor(string text, string value, bool selected, string optionGroup)
Parameters
- text
- Type: string
The item text.
- value
- Type: string
The item value.
- selected
- Type: bool
Value indicating whether the item is selected.
- optionGroup
- Type: string
The option group of the item.