IUserStore<TUser>.GetNormalizedUserNameAsync 方法

定义

获取指定 user的规范化用户名。

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

参数

user
TUser

应检索其规范化名称的用户。

cancellationToken
CancellationToken

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

返回

表示异步操作的 , Task 包含指定 user的规范化用户名。

适用于