IUserValidator<TUser> Interface

Provides an abstraction for user validation.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public interface IUserValidator<TUser>
    where TUser : class
interface Microsoft.AspNetCore.Identity.IUserValidator<TUser>

Methods

ValidateAsync(Microsoft.AspNetCore.Identity.UserManager<TUser>, TUser)

Validates the specified <em>user</em> as an asynchronous operation.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>

Returns:

The System.Threading.Tasks.Task that represents the asynchronous operation, containing the Microsoft.AspNetCore.Identity.IdentityResult of the validation operation.

Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user)