Language

IRoleStore<TRole, TKey> Interface

 

Defines the methods for role management.

Namespace:   Microsoft.AspNet.Identity Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

public interface IRoleStore<TRole, in TKey> : IDisposable
where TRole : object, IRole<TKey>
generic<typename TRole, typename TKey>
where TRole : Object, IRole<TKey>
public interface class IRoleStore : IDisposable
type IRoleStore<'TRole, 'TKey when 'TRole : Object and IRole<'TKey>> =
    interface
        interface IDisposable
    end
Public Interface IRoleStore(Of TRole As { Object, IRole(Of TKey) }, In TKey)
    Inherits IDisposable

Type Parameters

  • TRole The type of the role.
  • in TKey The type of the key.

Methods

Name Description
CreateAsync(TRole) Asynchronously creates a new role.
DeleteAsync(TRole) Asynchronously deletes a role.
Dispose() (Inherited from IDisposable.)
FindByIdAsync(TKey) Asynchronously finds a role by ID.
FindByNameAsync(String) Asynchronously finds a role by name.
UpdateAsync(TRole) Asynchronously updates a role.

See Also

Microsoft.AspNet.Identity Namespace [ASP.NET Identity](https://go.microsoft.com/fwlink/p/?linkid=393664.

Return to top