AuthenticationStateProvider.GetAuthenticationStateAsync Metoda

Definicja

Asynchronicznie pobiera element opisujący AuthenticationState bieżącego użytkownika.

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)

Zwraca

Zadanie, które po rozwiązaniu problemu daje AuthenticationState wystąpienie opisujące bieżącego użytkownika.

Dotyczy