Sdílet prostřednictvím


AuthenticationStateProvider.GetAuthenticationStateAsync Metoda

Definice

Asynchronně získá objekt AuthenticationState , který popisuje aktuálního uživatele.

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)

Návraty

Úloha, která při vyřešení poskytne AuthenticationState instanci, která popisuje aktuálního uživatele.

Platí pro