UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetPasswordHashAsync 方法

定义

获取用户的密码哈希。

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

参数

user
TUser

要为其检索密码哈希的用户。

cancellationToken
CancellationToken

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

返回

一个 Task<TResult> ,它包含用户的密码哈希。

实现

适用于