IUserPasswordStore<TUser>.SetPasswordHashAsync Méthode

Définition

Définit le hachage de mot de passe pour le spécifié 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

Paramètres

user
TUser

Utilisateur dont le hachage de mot de passe doit être défini.

passwordHash
String

Hachage du mot de passe à définir.

cancellationToken
CancellationToken

CancellationToken utilisé pour propager les notifications indiquant que l’opération doit être annulée.

Retours

Task qui représente l’opération asynchrone.

S’applique à