共用方式為


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

傳回

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

實作

適用於