SelectListAttribute(string)
Configures a select list editor with constant compile-time select options.
public SelectListAttribute(params string options)
Parameters
options
string
Options are of the format "{Key}|{Label}". If the label is omitted, the key will also be used as label.
SelectListAttribute(Type)
Renders a select list editor with select options retrieved from the specified options provider.
public SelectListAttribute(Type optionsProviderType)
Parameters
optionsProviderType
Type
The select options provider type. Must implement ISelectOptionsProvider.