次の方法で共有


HtmlHelper.GenerateDropDown メソッド

定義

ドロップダウンを生成します。

protected:
 Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateDropDown(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Rendering::SelectListItem ^> ^ selectList, System::String ^ optionLabel, System::Object ^ htmlAttributes);
protected Microsoft.AspNetCore.Html.IHtmlContent GenerateDropDown (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> selectList, string optionLabel, object htmlAttributes);
member this.GenerateDropDown : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * seq<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Function GenerateDropDown (modelExplorer As ModelExplorer, expression As String, selectList As IEnumerable(Of SelectListItem), optionLabel As String, htmlAttributes As Object) As IHtmlContent

パラメーター

modelExplorer
ModelExplorer

ModelExplorer

expression
String

式。

selectList
IEnumerable<SelectListItem>

選択リスト。

optionLabel
String

オプション ラベル。

htmlAttributes
Object

Object要素の HTML 属性を含む 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンス。

戻り値

IHtmlContent

適用対象