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的密码哈希。

适用于