RoleValidator<TRole> Classe

Définition

Fournit la validation par défaut des rôles.

generic <typename TRole>
 where TRole : classpublic ref class RoleValidator : Microsoft::AspNetCore::Identity::IRoleValidator<TRole>
public class RoleValidator<TRole> : Microsoft.AspNetCore.Identity.IRoleValidator<TRole> where TRole : class
type RoleValidator<'Role (requires 'Role : null)> = class
    interface IRoleValidator<'Role (requires 'Role : null)>
Public Class RoleValidator(Of TRole)
Implements IRoleValidator(Of TRole)

Paramètres de type

TRole

Type encapsulant un rôle.

Héritage
RoleValidator<TRole>
Implémente

Constructeurs

RoleValidator<TRole>(IdentityErrorDescriber)

Crée une instance de RoleValidator<TRole>.

Méthodes

ValidateAsync(RoleManager<TRole>, TRole)

Valide un rôle en tant qu’opération asynchrone.

S’applique à