IRoleStore<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
Task<TRole> FindByNameAsync(
string roleName
)
Task<TRole>^ FindByNameAsync(
String^ roleName
)
abstract FindByNameAsync :
roleName:string -> Task<'TRole>
Function FindByNameAsync (
roleName As String
) As Task(Of TRole)
Parameters
roleName
Type: System.StringThe name of the role.
Return Value
Type: System.Threading.Tasks.Task<TRole>
The task representing the asynchronous operation.
See Also
IRoleStore<TRole, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top