Dela via


IRoleStore<TRole>.SetNormalizedRoleNameAsync Method

Definition

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

public:
 System::Threading::Tasks::Task ^ SetNormalizedRoleNameAsync(TRole role, System::String ^ normalizedName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string? normalizedName, System.Threading.CancellationToken cancellationToken);
abstract member SetNormalizedRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetNormalizedRoleNameAsync (role As TRole, normalizedName As String, cancellationToken As CancellationToken) 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.

Applies to