IRoleValidator<TRole> Interface

Provides an abstraction for a validating a role.

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

Syntax

public interface IRoleValidator<TRole>
    where TRole : class
interface Microsoft.AspNetCore.Identity.IRoleValidator<TRole>

Methods

ValidateAsync(Microsoft.AspNetCore.Identity.RoleManager<TRole>, TRole)

Validates a role as an asynchronous operation.

Arguments:
Return type:

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

Returns:

A System.Threading.Tasks.Task`1 that represents the Microsoft.AspNetCore.Identity.IdentityResult of the asynchronous validation.

Task<IdentityResult> ValidateAsync(RoleManager<TRole> manager, TRole role)