IUserLockoutStore<TUser>.ResetAccessFailedCountAsync 方法

定义

重置用户的失败访问计数。

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

参数

user
TUser

应重置其失败访问计数的用户。

cancellationToken
CancellationToken

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

返回

表示异步操作的 Task

注解

这通常在成功访问帐户后调用。

适用于