共用方式為


ServerAuthenticationStateProvider.SetAuthenticationState 方法

定義

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

public:
 virtual 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
override this.SetAuthenticationState : System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> -> unit
Public Sub SetAuthenticationState (authenticationStateTask As Task(Of AuthenticationState))

參數

authenticationStateTask
Task<AuthenticationState>

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

實作

適用於