Language
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 returns the roles for this user.
Namespace: Microsoft.AspNet.Identity Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task<IList<string>> GetRolesAsync(
TUser user
)
Task<IList<String^>^>^ GetRolesAsync(
TUser user
)
abstract GetRolesAsync :
user:'TUser -> Task<IList<string>>
Function GetRolesAsync (
user As TUser
) As Task(Of IList(Of String))
Parameters
user Type: TUser
The user.
Return Value
Type: System.Threading.Tasks.Task<IList<String>>
The task object representing the asynchronous operation.
See Also
IUserRoleStore<TUser, TKey> Interface Microsoft.AspNet.Identity Namespace [ASP.NET Identity](https://go.microsoft.com/fwlink/p/?linkid=393664.
Return to top