ComponentStatePersistenceManager.PersistStateAsync Method

Definition

Persists the component application state into the given IPersistentComponentStateStore.

public System.Threading.Tasks.Task PersistStateAsync (Microsoft.AspNetCore.Components.IPersistentComponentStateStore store, Microsoft.AspNetCore.Components.RenderTree.Renderer renderer);
member this.PersistStateAsync : Microsoft.AspNetCore.Components.IPersistentComponentStateStore * Microsoft.AspNetCore.Components.RenderTree.Renderer -> System.Threading.Tasks.Task
Public Function PersistStateAsync (store As IPersistentComponentStateStore, renderer As Renderer) As Task

Parameters

store
IPersistentComponentStateStore

The IPersistentComponentStateStore to restore the application state from.

renderer
Renderer

The Renderer that components are being rendered.

Returns

A Task that will complete when the state has been restored.

Applies to