Dela via


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetPasswordHashAsync Method

Definition

Gets the password hash for a user.

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

Parameters

user
TUser

The user to retrieve the password hash for.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

A Task<TResult> that contains the password hash for the user.

Implements

Applies to