Share via


UserManager<TUser>.GetAccessFailedCountAsync(TUser) Method

Definition

Retrieves the current number of failed accesses for the given user.

public:
 virtual System::Threading::Tasks::Task<int> ^ GetAccessFailedCountAsync(TUser user);
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync (TUser user);
abstract member GetAccessFailedCountAsync : 'User -> System.Threading.Tasks.Task<int>
override this.GetAccessFailedCountAsync : 'User -> System.Threading.Tasks.Task<int>
Public Overridable Function GetAccessFailedCountAsync (user As TUser) As Task(Of Integer)

Parameters

user
TUser

The user whose access failed count should be retrieved for.

Returns

The Task that contains the result the asynchronous operation, the current failed access count for the user.

Applies to