共用方式為


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.ReplaceCodesAsync 方法

定義

更新使用者恢復碼,同時使任何先前的修復碼失效。

public:
 virtual System::Threading::Tasks::Task ^ ReplaceCodesAsync(TUser user, System::Collections::Generic::IEnumerable<System::String ^> ^ recoveryCodes, System::Threading::CancellationToken cancellationToken);
public virtual 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
override this.ReplaceCodesAsync : 'User * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ReplaceCodesAsync (user As TUser, recoveryCodes As IEnumerable(Of String), cancellationToken As CancellationToken) As Task

參數

user
TUser

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

recoveryCodes
IEnumerable<String>

使用者的新修復碼。

cancellationToken
CancellationToken

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

傳回

使用者的新修復碼。

實作

適用於