Click or drag to resize
ApplicationRoleStoreTRoleSetRoleNameAsync Method
Sets the name of a role in the store as an asynchronous operation.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task SetRoleNameAsync(
	TRole role,
	string roleName,
	CancellationToken cancellationToken
)

Parameters

role
Type: TRole
The role whose name should be set.
roleName
Type: SystemString
The name of the role.
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

IRoleStore.SetRoleNameAsync(UTP, String, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionrole is null.
See Also