Share via


IHtmlGenerator.GenerateValidationSummary Method

Definition

Generates a <div> element which contains a list of validation errors.

public:
 Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, bool excludePropertyErrors, System::String ^ message, System::String ^ headerTag, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateValidationSummary (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, bool excludePropertyErrors, string message, string headerTag, object htmlAttributes);
abstract member GenerateValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * bool * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Function GenerateValidationSummary (viewContext As ViewContext, excludePropertyErrors As Boolean, message As String, headerTag As String, htmlAttributes As Object) As TagBuilder

Parameters

viewContext
ViewContext
excludePropertyErrors
Boolean
message
String
headerTag
String
htmlAttributes
Object

An Object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the Object. This Object is typically created using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

Returns

Applies to