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, DateTimeOffset? lockoutEnd, System.Threading.CancellationToken cancellationToken = default);
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
Public Overridable Function SetLockoutEndDateAsync (user As TUser, lockoutEnd As Nullable(Of DateTimeOffset), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

user
TUser

The user whose lockout date should be set.

lockoutEnd
Nullable<DateTimeOffset>

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

cancellationToken
CancellationToken

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

Returns

Task

The Task that represents the asynchronous operation.

Implements

Applies to