ComponentStatePersistenceManager.RestoreStateAsync 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定的 IPersistentComponentStateStore 還原元件應用程式狀態。
C#
public System.Threading.Tasks.Task RestoreStateAsync (Microsoft.AspNetCore.Components.IPersistentComponentStateStore store);
member this.RestoreStateAsync : Microsoft.AspNetCore.Components.IPersistentComponentStateStore -> System.Threading.Tasks.Task
Public Function RestoreStateAsync (store As IPersistentComponentStateStore) As Task
要 IPersistentComponentStateStore 從中還原應用程式狀態的 。
, Task 會在還原狀態時完成。
產品 | 版本 |
---|---|
ASP.NET Core | 6.0, 7.0, 8.0, 9.0 |