共用方式為


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 作業的 。

適用於