共用方式為


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.GetAuthenticationStateAsync 方法

定義

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

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

傳回

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

適用於