Partager via


HtmlHelper.GenerateListBox Méthode

Définition

Générer une zone de liste.

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

Paramètres

modelExplorer
ModelExplorer

L’ModelExploreropérateur

expression
String

Expression.

selectList
IEnumerable<SelectListItem>

Énumération de SelectListItem.

htmlAttributes
Object

Object qui contient les attributs HTML de l’élément . IDictionary<TKey,TValue> Une instance contenant les attributs HTML.

Retours

L’IHtmlContentopérateur

S’applique à