Share via


IUserRoleStore<TUser, TKey>.GetRolesAsync Method

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
)

Parameters

  • user
    Type: TUser
    The user.

Return Value

Type: System.Threading.Tasks.Task<IList<String>>
The task object representing the asynchronous operation.

See Also

Reference

IUserRoleStore<TUser, TKey> Interface

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity