IUserRoleStore<TUser>.GetRolesAsync Method
Returns the roles for this user
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Function GetRolesAsync ( _
user As TUser _
) As Task(Of IList(Of String))
'Usage
Dim instance As IUserRoleStore
Dim user As TUser
Dim returnValue As Task(Of IList(Of String))
returnValue = instance.GetRolesAsync(user)
Task<IList<string>> GetRolesAsync(
TUser user
)
Task<IList<String^>^>^ GetRolesAsync(
TUser user
)
abstract GetRolesAsync :
user:'TUser -> Task<IList<string>>
function GetRolesAsync(
user : TUser
) : Task<IList<String>>
Parameters
- user
Type: TUser
Return Value
Type: System.Threading.Tasks.Task<IList<String>>