次の方法で共有


HtmlHelper.GenerateListBox メソッド

定義

リスト ボックスを生成します。

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

パラメーター

modelExplorer
ModelExplorer

ModelExplorer

expression
String

式。

selectList
IEnumerable<SelectListItem>

SelectListItem列挙体。

htmlAttributes
Object

Object要素の HTML 属性を格納している 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンスです。

戻り値

IHtmlContent

適用対象