Share via


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

Definition

Generate a validation summary.

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

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