UserValidator<TUser>.ValidateAsync 方法

定义

验证指定 user 为异步操作的 。

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

参数

manager
UserManager<TUser>

UserManager<TUser>可用于检索用户属性的 。

user
TUser

要验证的用户。

返回

表示 Task 异步操作的 ,包含 IdentityResult 验证操作的 。

实现

适用于