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: - manager (Microsoft.AspNetCore.Identity.UserManager<TUser>) – The
Microsoft.AspNetCore.Identity.UserManager`1
that can be used to retrieve user properties. - user (TUser) – The user to validate.
Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Returns: The
System.Threading.Tasks.Task
that represents the asynchronous operation, containing theMicrosoft.AspNetCore.Identity.IdentityResult
of the validation operation.Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user)
- manager (Microsoft.AspNetCore.Identity.UserManager<TUser>) – The
-