共用方式為


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

適用於