IUserTwoFactorRecoveryCodeStore<TUser>.ReplaceCodesAsync 方法

定义

汇报用户的恢复代码,同时使以前的任何恢复代码失效。

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,用于传播应取消操作的通知。

返回

用户的新恢复代码。

适用于