使用英语阅读

通过


IRoleStore<TRole>.GetNormalizedRoleNameAsync 方法

定义

获取角色的规范化名称作为异步操作。

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

应检索其规范化名称的角色。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

包含角色名称的 Task<TResult>

适用于