IUserLockoutStore<TUser, TKey>.SetLockoutEndDateAsync Method (TUser, DateTimeOffset)

 

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
)
Task^ SetLockoutEndDateAsync(
    TUser user,
    DateTimeOffset lockoutEnd
)
abstract SetLockoutEndDateAsync : 
        user:'TUser *
        lockoutEnd:DateTimeOffset -> Task
Function SetLockoutEndDateAsync (
    user As TUser,
    lockoutEnd As DateTimeOffset
) As Task

Parameters

  • user
    Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task

The task object representing the asynchronous operation.

See Also

IUserLockoutStore<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top