IRoleStore<TRole>.SetRoleNameAsync Method

Definition

Sets the name of a role in the store as an asynchronous operation.

public:
 System::Threading::Tasks::Task ^ SetRoleNameAsync(TRole role, System::String ^ roleName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string roleName, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string? roleName, System.Threading.CancellationToken cancellationToken);
abstract member SetRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetRoleNameAsync (role As TRole, roleName As String, cancellationToken As CancellationToken) As Task

Parameters

role
TRole

The role whose name should be set.

roleName
String

The name of the role.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation.

Applies to