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

定义

返回对用户仍然有效的恢复代码数。

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

参数

user
TUser

拥有恢复代码的用户。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

用户的有效恢复代码数。

实现

适用于