IRoleStore<TRole>.SetRoleNameAsync(TRole, String, CancellationToken) IRoleStore<TRole>.SetRoleNameAsync(TRole, String, CancellationToken) Method

Definition

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

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

Parameters

role
TRole TRole

The role whose name should be set.

roleName
String String

The name of the role.

cancellationToken
CancellationToken CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Applies to