UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetNormalizedUserNameAsync 方法

定义

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

public virtual System.Threading.Tasks.Task<string> GetNormalizedUserNameAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<string?> GetNormalizedUserNameAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNormalizedUserNameAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetNormalizedUserNameAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetNormalizedUserNameAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

参数

user
TUser

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

cancellationToken
CancellationToken

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

返回

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

实现

适用于