DefaultHtmlGenerator.GenerateGroupsAndOptions Metodo

Definizione

Genera <elementi optgroup> e <opzioni> .

public:
 virtual 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
override this.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

Parametri

optionLabel
String

Testo facoltativo per un elemento di opzione> vuoto <predefinito.

selectList
IEnumerable<SelectListItem>

Raccolta di SelectListItem oggetti usati per generare <elementi optgroup> e <opzioni> .

Restituisce

IHtmlContent Istanza di <optgroup> e <elementi di opzione>.

Implementazioni

Si applica a