Share via


AuthenticationStateProvider.GetAuthenticationStateAsync 方法

定義

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

public:
 abstract System::Threading::Tasks::Task<Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^> ^ GetAuthenticationStateAsync();
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> GetAuthenticationStateAsync ();
abstract member GetAuthenticationStateAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState>
Public MustOverride Function GetAuthenticationStateAsync () As Task(Of AuthenticationState)

傳回

解析時的工作會 AuthenticationState 提供描述目前使用者的實例。

適用於