Click or drag to resize
ApplicationUserStoreTUserRemoveFromRoleAsync Method
Remove the specified user from the named role.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task RemoveFromRoleAsync(
	TUser user,
	string roleName,
	CancellationToken cancellationToken
)

Parameters

user
Type: TUser
The user to remove the named role from.
roleName
Type: SystemString
The name of the role to remove.
cancellationToken
Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.

Return Value

Type: Task
The Task that represents the asynchronous operation.

Implements

IUserRoleStore.RemoveFromRoleAsync(UTP, String, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionuser is null.
ArgumentExceptionroleName is null or empty.
See Also