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
System_CAPS_pubmethod CreateAsync(TRole)

Asynchronously creates a new role.

System_CAPS_pubmethod DeleteAsync(TRole)

Asynchronously deletes a role.

System_CAPS_pubmethod Dispose()

(Inherited from IDisposable.)

System_CAPS_pubmethod FindByIdAsync(TKey)

Asynchronously finds a role by ID.

System_CAPS_pubmethod FindByNameAsync(String)

Asynchronously finds a role by name.

System_CAPS_pubmethod UpdateAsync(TRole)

Asynchronously updates a role.

See Also

Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top