Sdílet prostřednictvím


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ž hodnotu hash hesla chcete nastavit.

passwordHash
String

Hodnota hash hesla, která se má nastavit.

cancellationToken
CancellationToken

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

Návraty

Hodnota Task , která představuje asynchronní operaci.

Platí pro