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>, 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. |
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. |
TryTakeFromJson<TValue>(String, TValue) |
Tries to retrieve the persisted state as JSON with the given |