共用方式為


AuthenticationStateDeserializationOptions.DeserializationCallback 屬性

定義

使用 PersistentComponentState 將 JSON 還原串行化至 WebAssembly 用戶端 AuthenticationStateProvider所傳回之 AuthenticationState 對象的預設 AuthenticationStateData 實作。

public Func<Microsoft.AspNetCore.Components.Authorization.AuthenticationStateData?,System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState>> DeserializationCallback { get; set; }
member this.DeserializationCallback : Func<Microsoft.AspNetCore.Components.Authorization.AuthenticationStateData, System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState>> with get, set
Public Property DeserializationCallback As Func(Of AuthenticationStateData, Task(Of AuthenticationState))

屬性值

適用於