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

适用于