Share via


RoleManager<TRole>.FindByIdAsync Method

Find a role by id

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

Syntax

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

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

Parameters

Return Value

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

See Also

Reference

RoleManager<TRole> Class

Microsoft.AspNet.Identity Namespace