Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PersistentStateAttribute Class

Definition

Namespace:
Microsoft.AspNetCore.Components
Assembly:
Microsoft.AspNetCore.Components.dll
Package:
Microsoft.AspNetCore.Components v10.0.0
Package:
Microsoft.AspNetCore.Components v11.0.0-preview.4.26230.115
Source:
PersistentStateAttribute.cs
Source:
PersistentStateAttribute.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?