RoleStore<TRole, TKey, TUserRole>.FindByNameAsync Method (String)

 

Asynchronously finds a role by name.

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

Syntax

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 Function FindByNameAsync (
    roleName As String
) As Task(Of TRole)

Parameters

Return Value

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

The task representing the asynchronous operation.

Implements

IRoleStore<TRole, TKey>.FindByNameAsync(String)

See Also

RoleStore<TRole, TKey, TUserRole> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top