共用方式為


IUserAuthenticatorKeyStore<TUser>.SetAuthenticatorKeyAsync 方法

定義

設定指定 user 之 的驗證器索引鍵。

public:
 System::Threading::Tasks::Task ^ SetAuthenticatorKeyAsync(TUser user, System::String ^ key, System::Threading::CancellationToken cancellationToken);
public 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
Public Function SetAuthenticatorKeyAsync (user As TUser, key As String, cancellationToken As CancellationToken) As Task

參數

user
TUser

應該設定其驗證器金鑰的使用者。

key
String

要設定的驗證器金鑰。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

表示非同步作業的 Task

適用於