Share via


IRoleStore<TRole>.FindByIdAsync Method

Finds a role by id

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

Syntax

'Declaration
Function FindByIdAsync ( _
    roleId As String _
) As Task(Of TRole)
'Usage
Dim instance As IRoleStore 
Dim roleId As String 
Dim returnValue As Task(Of TRole)

returnValue = instance.FindByIdAsync(roleId)
Task<TRole> FindByIdAsync(
    string roleId
)
Task<TRole>^ FindByIdAsync(
    String^ roleId
)
abstract FindByIdAsync : 
        roleId:string -> Task<'TRole> 
function FindByIdAsync(
    roleId : String
) : Task<TRole>

Parameters

Return Value

Type: System.Threading.Tasks.Task<TRole>

See Also

Reference

IRoleStore<TRole> Interface

Microsoft.AspNet.Identity Namespace