PersistentComponentState Class
Definition
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.
The state for the components and services of a components application.
public class PersistentComponentState
type PersistentComponentState = class
Public Class PersistentComponentState
- Inheritance
-
PersistentComponentState
Methods
PersistAsJson<TValue>(String, TValue) |
Serializes |
RegisterOnPersisting(Func<Task>) |
Register a callback to persist the component state when the application is about to be paused. Registered callbacks can use this opportunity to persist their state so that it can be retrieved when the application resumes. |
RegisterOnPersisting(Func<Task>, IComponentRenderMode) |
Register a callback to persist the component state when the application is about to be paused. Registered callbacks can use this opportunity to persist their state so that it can be retrieved when the application resumes. |
TryTakeFromJson<TValue>(String, TValue) |
Tries to retrieve the persisted state as JSON with the given |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for