Share via


IUserLockoutStore<TUser, TKey>.GetAccessFailedCountAsync Method

Asynchronously returns the current number of failed access attempts. This number usually will be reset whenever the password is verified or the account is locked out.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

Task<int> GetAccessFailedCountAsync(
    TUser user
)

Parameters

  • user
    Type: TUser
    The user.

Return Value

Type: System.Threading.Tasks.Task<Int32>
The task object representing the asynchronous operation.

See Also

Reference

IUserLockoutStore<TUser, TKey> Interface

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity