IUserRoleStore<TUser, TKey>.IsInRoleAsync Method (TUser, String)
Asynchronously returns whether a user is in the role.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task<bool> IsInRoleAsync(
TUser user,
string roleName
)
Task<bool>^ IsInRoleAsync(
TUser user,
String^ roleName
)
abstract IsInRoleAsync :
user:'TUser *
roleName:string -> Task<bool>
Function IsInRoleAsync (
user As TUser,
roleName As String
) As Task(Of Boolean)
Parameters
user
Type: TUserThe user.
roleName
Type: System.StringThe name of the role.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
The task object representing the asynchronous operation.
See Also
IUserRoleStore<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top