UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.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.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Syntax

public virtual Task SetLockoutEndDateAsync(
    TUser user,
    DateTimeOffset lockoutEnd
)
public:
virtual Task^ SetLockoutEndDateAsync(
    TUser user,
    DateTimeOffset lockoutEnd
)
abstract SetLockoutEndDateAsync : 
        user:'TUser *
        lockoutEnd:DateTimeOffset -> Task
override SetLockoutEndDateAsync : 
        user:'TUser *
        lockoutEnd:DateTimeOffset -> Task
Public Overridable 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 representing the asynchronous operation.

Implements

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

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top