UserManager<TUser, TKey>.GetAccessFailedCountAsync Method (TKey)
Returns the number of failed access attempts for the user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<int> GetAccessFailedCountAsync(
TKey userId
)
public:
virtual Task<int>^ GetAccessFailedCountAsync(
TKey userId
)
abstract GetAccessFailedCountAsync :
userId:'TKey -> Task<int>
override GetAccessFailedCountAsync :
userId:'TKey -> Task<int>
Public Overridable Function GetAccessFailedCountAsync (
userId As TKey
) As Task(Of Integer)
Parameters
userId
Type: TKeyThe user ID.
Return Value
Type: System.Threading.Tasks.Task<Int32>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top