共用方式為


IHostEnvironmentAuthenticationStateProvider.SetAuthenticationState 方法

定義

提供更新的 AuthenticationStateProvider 驗證狀態資料給 。

public:
 void SetAuthenticationState(System::Threading::Tasks::Task<Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^> ^ authenticationStateTask);
public void SetAuthenticationState (System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> authenticationStateTask);
abstract member SetAuthenticationState : System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> -> unit
Public Sub SetAuthenticationState (authenticationStateTask As Task(Of AuthenticationState))

參數

authenticationStateTask
Task<AuthenticationState>

使用更新 AuthenticationState 後解析的工作。

適用於