AuthenticationStateDeserializationOptions.DeserializationCallback 属性

定义

使用 PersistentComponentState 将 JSON 从服务器反序列化 AuthenticationStateData 的默认实现转换为 WebAssembly 客户端 AuthenticationStateProvider要返回的 AuthenticationState 对象。

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))

属性值

适用于