RoleManager<TRole, TKey>.FindByNameAsync Method (String)

 

Asynchronously finds a role by name.

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

Syntax

public virtual Task<TRole> FindByNameAsync(
    string roleName
)
public:
virtual Task<TRole>^ FindByNameAsync(
    String^ roleName
)
abstract FindByNameAsync : 
        roleName:string -> Task<'TRole>
override FindByNameAsync : 
        roleName:string -> Task<'TRole>
Public Overridable Function FindByNameAsync (
    roleName As String
) As Task(Of TRole)

Parameters

Return Value

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

The task object representing the asynchronous operation.

See Also

RoleManager<TRole, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top