Click or drag to resize
UserStoreIsInRoleAsync Method
Checks whether user is in role with given role name.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 12.0.0
Syntax
C#
public Task<bool> IsInRoleAsync(
	User user,
	string roleName
)

Parameters

user
Type: Kentico.MembershipUser
User entity.
roleName
Type: SystemString
Role name.

Return Value

Type: TaskBoolean
True if user is in role, false otherwise.

Implements

IUserRoleStore.IsInRoleAsync(UTP, String)
See Also