IRoleStore<TRole>.GetNormalizedRoleNameAsync Method
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.
Get a role's normalized name as an asynchronous operation.
public:
System::Threading::Tasks::Task<System::String ^> ^ GetNormalizedRoleNameAsync(TRole role, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetNormalizedRoleNameAsync (TRole role, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string?> GetNormalizedRoleNameAsync (TRole role, System.Threading.CancellationToken cancellationToken);
abstract member GetNormalizedRoleNameAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetNormalizedRoleNameAsync (role As TRole, cancellationToken As CancellationToken) As Task(Of String)
- role
- TRole
The role whose normalized name should be retrieved.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
A Task<TResult> that contains the name of the role.