共用方式為


AuthenticationStateProvider.AuthenticationStateChanged 事件

定義

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

public:
 event Microsoft::AspNetCore::Components::Authorization::AuthenticationStateChangedHandler ^ AuthenticationStateChanged;
public event Microsoft.AspNetCore.Components.Authorization.AuthenticationStateChangedHandler AuthenticationStateChanged;
public event Microsoft.AspNetCore.Components.Authorization.AuthenticationStateChangedHandler? AuthenticationStateChanged;
member this.AuthenticationStateChanged : Microsoft.AspNetCore.Components.Authorization.AuthenticationStateChangedHandler 
Public Custom Event AuthenticationStateChanged As AuthenticationStateChangedHandler 
Public Event AuthenticationStateChanged As AuthenticationStateChangedHandler 

事件類型

適用於