共用方式為


AuthenticationStateSerializationOptions.SerializationCallback 屬性

定義

使用 PersistentComponentState將伺服器 AuthenticationState 轉換成 JSON 串行化至用戶端 AuthenticationStateData 物件的預設實作。/>

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

屬性值

適用於