IPersistentComponentStateStore 介面

定義

管理屬於 Blazor 應用程式的元件和服務儲存體。

C#
public interface IPersistentComponentStateStore

方法

GetPersistedStateAsync()

從存放區取得保存狀態。

PersistStateAsync(IReadOnlyDictionary<String,Byte[]>)

將序列化狀態保存到儲存體。

SupportsRenderMode(IComponentRenderMode)

傳回值,這個值表示存放區是否支援指定的 IComponentRenderMode

適用於

產品 版本
ASP.NET Core 6.0, 7.0, 8.0, 9.0