RoleStore<TRole, TKey, TUserRole>.FindByIdAsync Method (TKey)
Asynchronously finds a role by using the specified identifier.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
public Task<TRole> FindByIdAsync(
TKey roleId
)
public:
virtual Task<TRole>^ FindByIdAsync(
TKey roleId
) sealed
abstract FindByIdAsync :
roleId:'TKey -> Task<'TRole>
override FindByIdAsync :
roleId:'TKey -> Task<'TRole>
Public Function FindByIdAsync (
roleId As TKey
) As Task(Of TRole)
Parameters
roleId
Type: TKeyThe role identifier.
Return Value
Type: System.Threading.Tasks.Task<TRole>
The task representing the asynchronous operation.
Implements
IRoleStore<TRole, TKey>.FindByIdAsync(TKey)
See Also
RoleStore<TRole, TKey, TUserRole> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity
Return to top