IHtmlGenerator.GenerateGroupsAndOptions Metoda

Definicja

<Generuje elementy optgroup> i <option>.

public:
 Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateGroupsAndOptions(System::String ^ optionLabel, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Rendering::SelectListItem ^> ^ selectList);
public Microsoft.AspNetCore.Html.IHtmlContent GenerateGroupsAndOptions (string optionLabel, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> selectList);
abstract member GenerateGroupsAndOptions : string * seq<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function GenerateGroupsAndOptions (optionLabel As String, selectList As IEnumerable(Of SelectListItem)) As IHtmlContent

Parametry

optionLabel
String

Opcjonalny tekst domyślnego pustego <elementu opcji> .

selectList
IEnumerable<SelectListItem>

Kolekcja obiektów służących do generowania SelectListItem<elementów optgroup> i <option> .

Zwraca

Wystąpienie IHtmlContent elementów <optgroup> i <option> .

Dotyczy