IRoleStore<TRole> Interface

Définition

Fournit une abstraction pour un stockage et une gestion des rôles.

generic <typename TRole>
 where TRole : classpublic interface class IRoleStore : IDisposable
public interface IRoleStore<TRole> : IDisposable where TRole : class
type IRoleStore<'Role (requires 'Role : null)> = interface
    interface IDisposable
Public Interface IRoleStore(Of TRole)
Implements IDisposable

Paramètres de type

TRole

Type qui représente un rôle.

Dérivé
Implémente

Méthodes

CreateAsync(TRole, CancellationToken)

Crée un rôle dans un magasin en tant qu’opération asynchrone.

DeleteAsync(TRole, CancellationToken)

Supprime un rôle du magasin en tant qu’opération asynchrone.

FindByIdAsync(String, CancellationToken)

Recherche le rôle qui a l’ID spécifié en tant qu’opération asynchrone.

FindByNameAsync(String, CancellationToken)

Recherche le rôle qui a le nom normalisé spécifié en tant qu’opération asynchrone.

GetNormalizedRoleNameAsync(TRole, CancellationToken)

Obtenir le nom normalisé d’un rôle en tant qu’opération asynchrone.

GetRoleIdAsync(TRole, CancellationToken)

Obtient l’ID d’un rôle à partir du magasin en tant qu’opération asynchrone.

GetRoleNameAsync(TRole, CancellationToken)

Obtient le nom d’un rôle à partir du magasin en tant qu’opération asynchrone.

SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

Définissez le nom normalisé d’un rôle en tant qu’opération asynchrone.

SetRoleNameAsync(TRole, String, CancellationToken)

Définit le nom d’un rôle dans le magasin en tant qu’opération asynchrone.

UpdateAsync(TRole, CancellationToken)

Mises à jour un rôle dans un magasin en tant qu’opération asynchrone.

S’applique à