共用方式為


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync 方法

定義

判斷驗證狀態是否仍然有效。

protected:
 abstract System::Threading::Tasks::Task<bool> ^ ValidateAuthenticationStateAsync(Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^ authenticationState, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<bool> ValidateAuthenticationStateAsync (Microsoft.AspNetCore.Components.Authorization.AuthenticationState authenticationState, System.Threading.CancellationToken cancellationToken);
abstract member ValidateAuthenticationStateAsync : Microsoft.AspNetCore.Components.Authorization.AuthenticationState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected MustOverride Function ValidateAuthenticationStateAsync (authenticationState As AuthenticationState, cancellationToken As CancellationToken) As Task(Of Boolean)

參數

authenticationState
AuthenticationState

目前的 AuthenticationState

cancellationToken
CancellationToken

CancellationToken在執行作業時要觀察的 。

傳回

如果 Task 仍然有效,則解析為 true authenticationState 的 ,如果無效則為 false。

適用於