Share via


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.SetNormalizedRoleNameAsync Method

Definition

Set a role's normalized name as an asynchronous operation.

public virtual System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string? normalizedName, System.Threading.CancellationToken cancellationToken = default);
abstract member SetNormalizedRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetNormalizedRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetNormalizedRoleNameAsync (role As TRole, normalizedName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

role
TRole

The role whose normalized name should be set.

normalizedName
String

The normalized name to set

cancellationToken
CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Implements

Applies to