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 描述当前用户的实例。

适用于