ApplicationUserStoreTUserGetUsersInRoleAsync Method |
Returns a list of Users who are members of the named role.
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax 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 Exception | Condition |
---|
ArgumentException | roleName null or empty. |
See Also