Click or drag to resize
KenticoUserStoreTUserIsInRoleAsync Method (TUser, String)
Checks whether user is in role with given role name.

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

Parameters

user
Type: TUser
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