HtmlHelper.GenerateValidationSummary(Boolean, String, Object, String) Method

Definition

Generate a validation summary.

C#
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateValidationSummary (bool excludePropertyErrors, string message, object htmlAttributes, string tag);

Parameters

excludePropertyErrors
Boolean

Whether to exclude property errors.

message
String

The validation message.

htmlAttributes
Object

An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

tag
String

The tag.

Returns

The IHtmlContent.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0