IUserPasswordStore<TUser>.SetPasswordHashAsync 方法

定义

设置指定 user的密码哈希。

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

参数

user
TUser

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

passwordHash
String

要设置的密码哈希。

cancellationToken
CancellationToken

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

返回

表示异步操作的 Task

适用于