DefaultHtmlGenerator.GenerateGroupsAndOptions メソッド

定義

<optgroup> 要素とオプション>要素を<生成します。

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

パラメーター

optionLabel
String

既定の空 <のオプション要素の省略> 可能なテキスト。

selectList
IEnumerable<SelectListItem>

optgroup> 要素と option> 要素を生成<するために使用されるオブジェクトの<コレクションSelectListItem

戻り値

IHtmlContent optgroup> 要素と <option> 要素の<インスタンス。

実装

適用対象