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

参数

context
CookieValidatePrincipalContext

包含要验证的 ClaimsPrincipalAuthenticationProperties 的上下文。

返回

表示 Task 异步验证操作的 。

适用于