UserManager<TUser>.ResetAccessFailedCountAsync(TUser) 方法

定义

重置指定 user的访问失败计数。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ResetAccessFailedCountAsync(TUser user);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ResetAccessFailedCountAsync (TUser user);
abstract member ResetAccessFailedCountAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ResetAccessFailedCountAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ResetAccessFailedCountAsync (user As TUser) As Task(Of IdentityResult)

参数

user
TUser

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

返回

表示 Task 异步操作的 ,包含 IdentityResult 操作的 。

适用于