Condividi tramite


AuthenticationStateProvider.GetAuthenticationStateAsync Metodo

Definizione

Ottiene in modo asincrono un oggetto AuthenticationState che descrive l'utente corrente.

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)

Restituisce

Un'attività che, se risolta, fornisce un'istanza AuthenticationState che descrive l'utente corrente.

Si applica a