Share via


IUserLockoutStore<TUser, TKey>.SetLockoutEndDateAsync Method

Asynchronously locks a user out until the specified end date (set to a past date, to unlock a user).

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

Task SetLockoutEndDateAsync(
    TUser user,
    DateTimeOffset lockoutEnd
)

Parameters

  • user
    Type: TUser
    The user.

Return Value

Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.

See Also

Reference

IUserLockoutStore<TUser, TKey> Interface

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity