Compartilhar via


AuthenticationStateProvider.GetAuthenticationStateAsync Método

Definição

Obtém de forma assíncrona um AuthenticationState que descreve o usuário atual.

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)

Retornos

Uma tarefa que, quando resolvida, fornece uma AuthenticationState instância que descreve o usuário atual.

Aplica-se a