Lingua

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

Definizione

Generare un'etichetta.

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateLabel(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::String ^ labelText, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateLabel(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes);
abstract member GenerateLabel : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateLabel : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GenerateLabel (modelExplorer As ModelExplorer, expression As String, labelText As String, htmlAttributes As Object) As IHtmlContent

Parametri

modelExplorer
ModelExplorer

Il ModelExplorer

expression
String

Espressione.

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.

Valori restituiti

Il IHtmlContent

Si applica a