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: - manager (Microsoft.AspNetCore.Identity.RoleManager<TRole>) – The
Microsoft.AspNetCore.Identity.RoleManager`1
managing the role store. - role (TRole) – The role to validate.
Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Returns: A
System.Threading.Tasks.Task`1
that represents theMicrosoft.AspNetCore.Identity.IdentityResult
of the asynchronous validation.Task<IdentityResult> ValidateAsync(RoleManager<TRole> manager, TRole role)
- manager (Microsoft.AspNetCore.Identity.RoleManager<TRole>) – The
-