IUserLockoutStore<TUser>.IncrementAccessFailedCountAsync Method

Definition

Records that a failed access has occurred, incrementing the failed access count.

public:
 System::Threading::Tasks::Task<int> ^ IncrementAccessFailedCountAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<int> IncrementAccessFailedCountAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function IncrementAccessFailedCountAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of Integer)

Parameters

user
TUser

The user whose cancellation count should be incremented.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation, containing the incremented failed access count.

Applies to