共用方式為


IUserPasswordStore<TUser>.GetPasswordHashAsync 方法

定義

取得指定 user 之 的密碼雜湊。

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

參數

user
TUser

要擷取其密碼雜湊的使用者。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

Task,表示非同步作業,傳回指定 user 之 的密碼雜湊。

適用於