Share via


RoleStore<TRole>.FindByIdAsync Method

Find a role by id

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

Syntax

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

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

Parameters

Return Value

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

Implements

IRoleStore<TRole>.FindByIdAsync(String)

See Also

Reference

RoleStore<TRole> Class

Microsoft.AspNet.Identity.EntityFramework Namespace