共用方式為


IUserStore<TUser>.SetNormalizedUserNameAsync 方法

定義

設定指定 user 之 的指定正規化名稱。

public:
 System::Threading::Tasks::Task ^ SetNormalizedUserNameAsync(TUser user, System::String ^ normalizedName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedUserNameAsync (TUser user, string normalizedName, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetNormalizedUserNameAsync (TUser user, string? normalizedName, System.Threading.CancellationToken cancellationToken);
abstract member SetNormalizedUserNameAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetNormalizedUserNameAsync (user As TUser, normalizedName As String, cancellationToken As CancellationToken) As Task

參數

user
TUser

應該設定其名稱的使用者。

normalizedName
String

要設定的正規化名稱。

cancellationToken
CancellationToken

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

傳回

表示非同步作業的 Task

適用於