Condividi tramite


HtmlHelper.GenerateListBox Metodo

Definizione

Generare una casella di riepilogo.

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

Parametri

modelExplorer
ModelExplorer

Oggetto ModelExplorer.

expression
String

Espressione.

selectList
IEnumerable<SelectListItem>

Enumerazione di SelectListItem.

htmlAttributes
Object

Oggetto Object contenente gli attributi HTML per l'elemento . In alternativa, un'istanza IDictionary<TKey,TValue> contenente gli attributi HTML.

Restituisce

Oggetto IHtmlContent.

Si applica a