共用方式為


IUserAuthenticatorKeyStore<TUser>.GetAuthenticatorKeyAsync 方法

定義

取得指定 user 之 的驗證器金鑰。

public:
 System::Threading::Tasks::Task<System::String ^> ^ GetAuthenticatorKeyAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync (TUser user, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string?> GetAuthenticatorKeyAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetAuthenticatorKeyAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetAuthenticatorKeyAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of String)

參數

user
TUser

應設定其安全性戳記的使用者。

cancellationToken
CancellationToken

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

傳回

Task,表示非同步作業,其中包含指定 user 之 的安全性戳記。

適用於