IHtmlGenerator.GenerateGroupsAndOptions Metoda

Definice

<Generuje prvky optgroup> a <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

Volitelný text pro výchozí prázdný <prvek možnosti> .

selectList
IEnumerable<SelectListItem>

Kolekce objektů používaných k vygenerování <elementů SelectListItem optgroup> a <option>.

Návraty

IHtmlContent

Instance IHtmlContent pro <optgroup> a <prvky možností> .

Platí pro