HtmlHelper.GenerateLabel(ModelExplorer, String, String, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Générez une étiquette.
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
Paramètres
- modelExplorer
- ModelExplorer
Le ModelExplorer.
- expression
- String
Expression.
- labelText
- String
Texte de l’étiquette.
- htmlAttributes
- Object
Qui Object contient les attributs HTML de l’élément. Vous pouvez également inclure une IDictionary<TKey,TValue> instance contenant les attributs HTML.
Retours
Le IHtmlContent.