UserManager<TUser, TKey>.GetLockoutEndDateAsync Method (TKey)

 

Returns when the user is no longer locked out, dates in the past are considered as not being locked out.

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

Syntax

public virtual Task<DateTimeOffset> GetLockoutEndDateAsync(
    TKey userId
)
public:
virtual Task<DateTimeOffset>^ GetLockoutEndDateAsync(
    TKey userId
)
abstract GetLockoutEndDateAsync : 
        userId:'TKey -> Task<DateTimeOffset>
override GetLockoutEndDateAsync : 
        userId:'TKey -> Task<DateTimeOffset>
Public Overridable Function GetLockoutEndDateAsync (
    userId As TKey
) As Task(Of DateTimeOffset)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The task representing the asynchronous operation.

See Also

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

Return to top