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

 

Sets the time when a user lockout ends.

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

Syntax

public virtual Task<IdentityResult> SetLockoutEndDateAsync(
    TKey userId,
    DateTimeOffset lockoutEnd
)
public:
virtual Task<IdentityResult^>^ SetLockoutEndDateAsync(
    TKey userId,
    DateTimeOffset lockoutEnd
)
abstract SetLockoutEndDateAsync : 
        userId:'TKey *
        lockoutEnd:DateTimeOffset -> Task<IdentityResult>
override SetLockoutEndDateAsync : 
        userId:'TKey *
        lockoutEnd:DateTimeOffset -> Task<IdentityResult>
Public Overridable Function SetLockoutEndDateAsync (
    userId As TKey,
    lockoutEnd As DateTimeOffset
) As Task(Of IdentityResult)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top