語言

AuthenticationStateSerializationOptions 類別

定義

提供使用 PersistentComponentState,設定伺服器 AuthenticationStateProvider 提供給 WebAssembly 用戶端之 AuthenticationState JSON 串行化的選項。

public class AuthenticationStateSerializationOptions
type AuthenticationStateSerializationOptions = class
Public Class AuthenticationStateSerializationOptions
繼承
AuthenticationStateSerializationOptions

建構函式

名稱 Description
AuthenticationStateSerializationOptions()

AuthenticationStateSerializationOptions的預設建構函式。

屬性

名稱 Description
SerializationCallback

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

SerializeAllClaims

如果 true,則預設 SerializationCallback 會串行化所有宣告;否則,它只會串行化 NameClaimType 和 RoleClaimType 宣告。

適用於