Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously finds a role by name.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'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>
- roleName
Type: System.String
The name of the role.
Type: System.Threading.Tasks.Task<TRole>
The task representing the asynchronous operation.
IRoleStore<TRole, TKey> Interface