PersistComponentStateTagHelper Class

Definition

A TagHelper that saves the state of Razor components rendered on the page up to that point.

[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("persist-component-state", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
public class PersistComponentStateTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("persist-component-state", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
type PersistComponentStateTagHelper = class
    inherit TagHelper
Public Class PersistComponentStateTagHelper
Inherits TagHelper
Inheritance
PersistComponentStateTagHelper
Attributes

Constructors

PersistComponentStateTagHelper()

Properties

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.

(Inherited from TagHelper)
PersistenceMode

Gets or sets the PersistenceMode for the state to persist.

ViewContext

Gets or sets the ViewContext for the current request.

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.

(Inherited from TagHelper)
ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

Applies to