Share via


PersistentStateAttribute Class

Definition

Indicates that the value for the parameter might come from persistent component state from a previous render.

[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class PersistentStateAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type PersistentStateAttribute = class
    inherit CascadingParameterAttributeBase
Public NotInheritable Class PersistentStateAttribute
Inherits CascadingParameterAttributeBase
Inheritance
PersistentStateAttribute
Attributes

Constructors

Name Description
PersistentStateAttribute()

Properties

Name Description
AllowUpdates

Gets or sets a value whether the component wants to receive updates to the parameter beyond the initial value provided during initialization.

RestoreBehavior

Gets or sets the behavior to use when restoring data.

Applies to