KenticoUserStoreTUserIsInRoleAsync Method (TUser, String) |
Checks whether user is in role with given role name.
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax public Task<bool> IsInRoleAsync(
TUser user,
string roleName
)
Parameters
- user
- Type: TUser
User entity. - roleName
- Type: SystemString
Role name.
Return Value
Type:
TaskBooleanTrue if user is in role, false otherwise.
Implements
IUserRoleStore.IsInRoleAsync(UTP, String)See Also