ValidationSummaryTagHelper ValidationSummaryTagHelper ValidationSummaryTagHelper Class

Definition

ITagHelper implementation targeting any HTML element with an asp-validation-summary attribute.

[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("div", Attributes="asp-validation-summary")]
public class ValidationSummaryTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
type ValidationSummaryTagHelper = class
    inherit TagHelper
Public Class ValidationSummaryTagHelper
Inherits TagHelper
Inheritance
ValidationSummaryTagHelperValidationSummaryTagHelperValidationSummaryTagHelper
Attributes

Constructors

ValidationSummaryTagHelper(IHtmlGenerator) ValidationSummaryTagHelper(IHtmlGenerator) ValidationSummaryTagHelper(IHtmlGenerator)

Creates a new ValidationSummaryTagHelper.

Properties

Generator Generator Generator
Order Order Order
ValidationSummary ValidationSummary ValidationSummary

If All or ModelOnly, appends a validation summary. Otherwise (None, the default), this tag helper does nothing.

ViewContext ViewContext ViewContext

Methods

Init(TagHelperContext) Init(TagHelperContext) Init(TagHelperContext)

Initializes the ITagHelper with the given context. Additions to Items should be done within this method to ensure they're added prior to executing the children.

(Inherited from TagHelper)
Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput)
ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

(Inherited from TagHelper)

Applies to