IUserLockoutStore<TUser>.SetLockoutEnabledAsync(TUser, Boolean, CancellationToken) Method

Definition

Set the flag indicating if the specified user can be locked out.

public:
 System::Threading::Tasks::Task ^ SetLockoutEnabledAsync(TUser user, bool enabled, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetLockoutEnabledAsync (TUser user, bool enabled, System.Threading.CancellationToken cancellationToken);
abstract member SetLockoutEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetLockoutEnabledAsync (user As TUser, enabled As Boolean, cancellationToken As CancellationToken) As Task

Parameters

user
TUser

The user whose ability to be locked out should be set.

enabled
Boolean

A flag indicating if lock out can be enabled for the specified user.

cancellationToken
CancellationToken

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

Returns

Task

The Task that represents the asynchronous operation.

Applies to