ValidationSummaryTagHelper Class

Definition

ITagHelper implementation targeting <div> elements with an asp-validation-summary attribute.

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

Constructors

ValidationSummaryTagHelper(IHtmlGenerator)

Creates a new ValidationSummaryTagHelper.

Properties

Generator

Gets the IHtmlGenerator used to generate the ValidationSummaryTagHelper's output.

Order

When a set of ITagHelpers are executed, their Init(TagHelperContext)'s are first invoked in the specified Order; then their ProcessAsync(TagHelperContext, TagHelperOutput)'s are invoked in the specified Order. Lower values are executed first.

ValidationSummary

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

ViewContext

Gets the ViewContext of the executing view.

Methods

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)

Synchronously executes the TagHelper with the given context and output.

ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

(Inherited from TagHelper)

Applies to