HtmlHelper.GenerateLabel(ModelExplorer, String, String, Object) Metodo

Definizione

Generare un'etichetta.

C#
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateLabel (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes);

Parametri

modelExplorer
ModelExplorer

Oggetto ModelExplorer.

expression
String

L'espresione.

labelText
String

Testo dell'etichetta.

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

Prodotto Versioni
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0