AuthenticationStateProvider 類別

定義

提供目前使用者驗證狀態的相關資訊。

public ref class AuthenticationStateProvider abstract
public abstract class AuthenticationStateProvider
type AuthenticationStateProvider = class
Public MustInherit Class AuthenticationStateProvider
繼承
AuthenticationStateProvider
衍生

建構函式

AuthenticationStateProvider()

提供目前使用者驗證狀態的相關資訊。

方法

GetAuthenticationStateAsync()

以非同步方式取得 AuthenticationState 描述目前使用者的 。

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

引發 AuthenticationStateChanged 事件。

事件

AuthenticationStateChanged

事件,可在 變更時 AuthenticationState 提供通知。 例如,如果使用者登入或登出,可能會引發此事件。

適用於