共用方式為


SecurityStampValidator.ValidatePrincipalAsync 方法

定義

根據使用者的預存安全性戳記驗證主體。

public:
 static System::Threading::Tasks::Task ^ ValidatePrincipalAsync(Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^ context);
public static System.Threading.Tasks.Task ValidatePrincipalAsync (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context);
static member ValidatePrincipalAsync : Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext -> System.Threading.Tasks.Task
Public Shared Function ValidatePrincipalAsync (context As CookieValidatePrincipalContext) As Task

參數

傳回

Task 表示非同步驗證作業。

適用於