UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetLockoutEnabledAsync(TUser, Boolean, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetLockoutEnabledAsync(TUser, Boolean, CancellationToken) Method

Definition

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

public virtual System.Threading.Tasks.Task SetLockoutEnabledAsync (TUser user, bool enabled, System.Threading.CancellationToken cancellationToken = null);
abstract member SetLockoutEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetLockoutEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

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

enabled
Boolean Boolean

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

cancellationToken
CancellationToken CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Implements

Applies to