UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.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.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)


Public Function GetAccessFailedCountAsync ( _
    user As TUser _
) As Task(Of Integer)
Dim instance As UserStore 
Dim user As TUser
Dim returnValue As Task(Of Integer)

returnValue = instance.GetAccessFailedCountAsync(user)
public Task<int> GetAccessFailedCountAsync(
    TUser user
virtual Task<int>^ GetAccessFailedCountAsync(
    TUser user
) sealed
abstract GetAccessFailedCountAsync : 
        user:'TUser -> Task<int> 
override GetAccessFailedCountAsync : 
        user:'TUser -> Task<int> 
public final function GetAccessFailedCountAsync(
    user : TUser
) : Task<int>


  • user
    Type: TUser
    The user.

Return Value

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


IUserLockoutStore<TUser, TKey>.GetAccessFailedCountAsync(TUser)

See Also


UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class

Microsoft.AspNet.Identity.EntityFramework Namespace

Other Resources

ASP.NET Identity