IRoleStore<TRole>.SetRoleNameAsync 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.
Sets the name of a role in the store as an asynchronous operation.
public:
System::Threading::Tasks::Task ^ SetRoleNameAsync(TRole role, System::String ^ roleName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string roleName, System.Threading.CancellationToken cancellationToken);
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
Public Function SetRoleNameAsync (role As TRole, roleName As String, cancellationToken As CancellationToken) As Task
Parameters
- role
- TRole
The role whose name should be set.
- roleName
- String
The name of the role.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
The Task that represents the asynchronous operation.