次の方法で共有


HtmlHelper.GenerateValidationMessage メソッド

定義

検証メッセージを生成します。

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

パラメーター

modelExplorer
ModelExplorer

ModelExplorer

expression
String

式。

message
String

検証メッセージ。

tag
String

タグ。

htmlAttributes
Object

Object要素の HTML 属性を含む 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンス。

戻り値

IHtmlContent

適用対象