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

Definition

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

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

Parameters

role
TRole

The role whose normalized name should be retrieved.

cancellationToken
CancellationToken

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

Returns

A Task<TResult> that contains the name of the role.

Implements

Applies to