Share via


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetAuthenticatorKeyAsync Metodo

Definizione

Imposta la chiave dell'autenticatore per l'oggetto specificato user.

public:
 virtual System::Threading::Tasks::Task ^ SetAuthenticatorKeyAsync(TUser user, System::String ^ key, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task SetAuthenticatorKeyAsync (TUser user, string key, System.Threading.CancellationToken cancellationToken);
abstract member SetAuthenticatorKeyAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetAuthenticatorKeyAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetAuthenticatorKeyAsync (user As TUser, key As String, cancellationToken As CancellationToken) As Task

Parametri

user
TUser

Utente la cui chiave di autenticazione deve essere impostata.

key
String

Chiave di autenticazione da impostare.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona.

Implementazioni

Si applica a