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

定义

设置用户的密码哈希。

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

参数

user
TUser

要为其设置密码哈希的用户。

passwordHash
String

要设置的密码哈希。

cancellationToken
CancellationToken

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

返回

表示异步操作的 Task

实现

适用于