IUserLockoutStore<TUser>.IncrementAccessFailedCountAsync 方法

定义

记录发生失败的访问,并递增失败的访问计数。

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

参数

user
TUser

取消计数应递增的用户。

cancellationToken
CancellationToken

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

返回

表示 Task 异步操作的 ,包含递增的失败访问计数。

适用于