HtmlHelper.GenerateValidationSummary(Boolean, String, Object, String) 方法

定义

生成验证摘要。

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateValidationSummary(bool excludePropertyErrors, System::String ^ message, System::Object ^ htmlAttributes, System::String ^ tag);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateValidationSummary (bool excludePropertyErrors, string message, object htmlAttributes, string tag);
abstract member GenerateValidationSummary : bool * string * obj * string -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateValidationSummary : bool * string * obj * string -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GenerateValidationSummary (excludePropertyErrors As Boolean, message As String, htmlAttributes As Object, tag As String) As IHtmlContent

参数

excludePropertyErrors
Boolean

是否排除属性错误。

message
String

验证消息。

htmlAttributes
Object

一个 Object ,其中包含元素的 HTML 属性。 或者,一个 IDictionary<TKey,TValue> 包含 HTML 属性的 实例。

tag
String

标记。

返回

IHtmlContent

适用于