IRoleStore<TRole> 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> : IRoleStore<TRole, string>, 
    IDisposable
where TRole : object, IRole<string>
generic<typename TRole>
where TRole : Object, IRole<String^>
public interface class IRoleStore : IRoleStore<TRole, String^>, 
    IDisposable
type IRoleStore<'TRole when 'TRole : Object and IRole<string>> = 
    interface
        interface IRoleStore<'TRole, string>
        interface IDisposable
    end
Public Interface IRoleStore(Of TRole As { Object, IRole(Of String) })
    Inherits IRoleStore(Of TRole, String), IDisposable

Type Parameters

  • TRole
    The type of the role.

Methods

Name Description
System_CAPS_pubmethod CreateAsync(TRole)

Asynchronously creates a new role.(Inherited from IRoleStore<TRole, TKey>.)

System_CAPS_pubmethod DeleteAsync(TRole)

Asynchronously deletes a role.(Inherited from IRoleStore<TRole, TKey>.)

System_CAPS_pubmethod Dispose()

(Inherited from IDisposable.)

System_CAPS_pubmethod FindByIdAsync(TKey)

Asynchronously finds a role by ID.(Inherited from IRoleStore<TRole, TKey>.)

System_CAPS_pubmethod FindByNameAsync(String)

Asynchronously finds a role by name.(Inherited from IRoleStore<TRole, TKey>.)

System_CAPS_pubmethod UpdateAsync(TRole)

Asynchronously updates a role.(Inherited from IRoleStore<TRole, TKey>.)

See Also

Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top