Click or drag to resize
ApplicationUserStoreTUserGetUsersInRoleAsync Method
Returns a list of Users who are members of the named role.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task<IList<TUser>> GetUsersInRoleAsync(
	string roleName,
	CancellationToken cancellationToken
)

Parameters

roleName
Type: SystemString
The name of the role whose membership should be returned.
cancellationToken
Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.

Return Value

Type: TaskIListTUser
The TaskTResult that represents the asynchronous operation, containing a list of users who are in the named role.

Implements

IUserRoleStore.GetUsersInRoleAsync(String, CancellationToken)
Exceptions
ExceptionCondition
ArgumentExceptionroleName null or empty.
See Also