共用方式為


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

適用於