Partager via


HtmlHelper.GenerateValidationMessage Méthode

Définition

Générez un message de validation.

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

Paramètres

modelExplorer
ModelExplorer

L’ModelExploreropérateur

expression
String

Expression.

message
String

Message de validation.

tag
String

La balise.

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 à