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

Syntax

'Declaration
Public Function SetLockoutEndDateAsync ( _
    user As TUser, _
    lockoutEnd As DateTimeOffset _
) As Task
'Usage
Dim instance As UserStore 
Dim user As TUser
Dim lockoutEnd As DateTimeOffset 
Dim returnValue As Task 

returnValue = instance.SetLockoutEndDateAsync(user, _
    lockoutEnd)
public Task SetLockoutEndDateAsync(
    TUser user,
    DateTimeOffset lockoutEnd
)
public:
virtual Task^ SetLockoutEndDateAsync(
    TUser user, 
    DateTimeOffset lockoutEnd
) sealed
abstract SetLockoutEndDateAsync : 
        user:'TUser * 
        lockoutEnd:DateTimeOffset -> Task  
override SetLockoutEndDateAsync : 
        user:'TUser * 
        lockoutEnd:DateTimeOffset -> Task
public final function SetLockoutEndDateAsync(
    user : TUser, 
    lockoutEnd : DateTimeOffset
) : 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

Reference

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class

Microsoft.AspNet.Identity.EntityFramework Namespace

Other Resources

ASP.NET Identity