IUserTwoFactorRecoveryCodeStore<TUser>.ReplaceCodesAsync(TUser, IEnumerable<String>, CancellationToken) 方法

定義

更新使用者的復原碼,同時讓任何先前的復原程式碼失效。

public:
 System::Threading::Tasks::Task ^ ReplaceCodesAsync(TUser user, System::Collections::Generic::IEnumerable<System::String ^> ^ recoveryCodes, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task ReplaceCodesAsync (TUser user, System.Collections.Generic.IEnumerable<string> recoveryCodes, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceCodesAsync : 'User * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReplaceCodesAsync (user As TUser, recoveryCodes As IEnumerable(Of String), cancellationToken As CancellationToken) As Task

參數

user
TUser

要儲存新修復碼的使用者。

recoveryCodes
IEnumerable<String>

使用者的新復原碼。

cancellationToken
CancellationToken

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

傳回

Task

使用者的新復原碼。

適用於