Share via


IRoleStore<TRole, TKey>.FindByIdAsync Method

Asynchronously finds a role by ID.

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

Syntax

Task<TRole> FindByIdAsync(
    TKey roleId
)

Parameters

  • roleId
    Type: TKey
    The role ID.

Return Value

Type: System.Threading.Tasks.Task<TRole>
The task representing the asynchronous operation.

See Also

Reference

IRoleStore<TRole, TKey> Interface

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity