RoleManager<TRole, TKey>.FindByIdAsync Method (TKey)
Asynchronously finds a role using the specified identifier.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<TRole> FindByIdAsync(
TKey roleId
)
public:
virtual Task<TRole>^ FindByIdAsync(
TKey roleId
)
abstract FindByIdAsync :
roleId:'TKey -> Task<'TRole>
override FindByIdAsync :
roleId:'TKey -> Task<'TRole>
Public Overridable 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 object representing the asynchronous operation.
See Also
RoleManager<TRole, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top