IUserValidator<TUser>.ValidateAsync(UserManager<TUser>, TUser) IUserValidator<TUser>.ValidateAsync(UserManager<TUser>, TUser) IUserValidator<TUser>.ValidateAsync(UserManager<TUser>, TUser) Method

Definition

Validates the specified user as an asynchronous operation.

public 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>
Public Function ValidateAsync (manager As UserManager(Of TUser), user As TUser) As Task(Of IdentityResult)

Parameters

manager
UserManager<TUser> UserManager<TUser> UserManager<TUser>

The UserManager<TUser> that can be used to retrieve user properties.

user

The user to validate.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the validation operation.

Applies to