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

返回

用户的有效恢复代码数。

适用于