Share via


RoleStore<TRole>.FindByNameAsync Method

Find a role by name

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

Syntax

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

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

Parameters

Return Value

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

Implements

IRoleStore<TRole>.FindByNameAsync(String)

See Also

Reference

RoleStore<TRole> Class

Microsoft.AspNet.Identity.EntityFramework Namespace