IUserPasswordStore<TUser>.SetPasswordHashAsync Metoda

Definice

Nastaví hodnotu hash hesla pro zadanou userhodnotu .

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

Parametry

user
TUser

Uživatel, jehož hodnota hash hesla se má nastavit.

passwordHash
String

Hodnota hash hesla, která se má nastavit.

cancellationToken
CancellationToken

Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.

Návraty

Task

To Task představuje asynchronní operaci.

Platí pro