共用方式為


IUserTwoFactorRecoveryCodeStore<TUser>.CountCodesAsync 方法

定義

傳回使用者仍然有效的復原程式碼數目。

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

參數

user
TUser

擁有復原程式碼的使用者。

cancellationToken
CancellationToken

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

傳回

使用者的有效修復碼數目。

適用於