共用方式為


IRoleStore<TRole>.SetNormalizedRoleNameAsync 方法

定義

將角色的正規化名稱設定為非同步作業。

public:
 System::Threading::Tasks::Task ^ SetNormalizedRoleNameAsync(TRole role, System::String ^ normalizedName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedRoleNameAsync (TRole role, string? normalizedName, System.Threading.CancellationToken cancellationToken);
abstract member SetNormalizedRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetNormalizedRoleNameAsync (role As TRole, normalizedName As String, cancellationToken As CancellationToken) As Task

參數

role
TRole

應該設定正規化名稱的角色。

normalizedName
String

要設定的正規化名稱

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

表示非同步作業的 Task

適用於