PasswordValidator<TUser>.ValidateAsync 方法

定义

验证密码作为异步操作。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidateAsync(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user, System::String ^ password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string? password);
abstract member ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ValidateAsync (manager As UserManager(Of TUser), user As TUser, password As String) As Task(Of IdentityResult)

参数

manager
UserManager<TUser>

UserManager<TUser> 从中检索属性的 user

user
TUser

应验证其密码的用户。

password
String

提供用于验证的密码

返回

表示异步操作的任务对象。

实现

适用于