UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetLockoutEndDateAsync(TUser, Nullable<DateTimeOffset>, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetLockoutEndDateAsync(TUser, Nullable<DateTimeOffset>, CancellationToken) Method

Definition

Locks out a user until the specified end date has passed. Setting a end date in the past immediately unlocks a user.

public virtual System.Threading.Tasks.Task SetLockoutEndDateAsync (TUser user, Nullable<DateTimeOffset> lockoutEnd, System.Threading.CancellationToken cancellationToken = null);
abstract member SetLockoutEndDateAsync : 'User * Nullable<DateTimeOffset> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetLockoutEndDateAsync : 'User * Nullable<DateTimeOffset> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

The user whose lockout date should be set.

lockoutEnd
Nullable<DateTimeOffset>

The DateTimeOffset after which the user's lockout should end.

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