Dela via


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

Definition

Sets the authenticator key for the specified 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

Parameters

user
TUser

The user whose authenticator key should be set.

key
String

The authenticator key to set.

cancellationToken
CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Implements

Applies to