RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>.SetNormalizedRoleNameAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.