IUserValidator Interface

Summary

Provides an abstraction for user validation.

Syntax

public interface IUserValidator

GitHub

View on GitHub

interface Microsoft.AspNet.Identity.IUserValidator

Methods

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

Validates the specified user as an asynchronous operation.

Arguments:
  • manager (Microsoft.AspNet.Identity.UserManager{{TUser}}) – The Microsoft.AspNet.Identity.UserManager`1 that can be used to retrieve user properties.
  • user ({TUser}) – The user to validate.
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Identity.IdentityResult}

Returns:

The <see cref=”T:System.Threading.Tasks.Task” /> that represents the asynchronous operation, containing the <see cref=”T:Microsoft.AspNet.Identity.IdentityResult” /> of the validation operation.

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