IRoleStore<TRole>.FindByNameAsync Method

Find a role by name

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

Syntax

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

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

Parameters

Return Value

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

See Also

Reference

IRoleStore<TRole> Interface

Microsoft.AspNet.Identity Namespace