UserManager<TUser, TKey>.GetLockoutEndDateAsync Method

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

'Declaration
Public Overridable Function GetLockoutEndDateAsync ( _
    userId As TKey _
) As Task(Of DateTimeOffset)
'Usage
Dim instance As UserManager 
Dim userId As TKey
Dim returnValue As Task(Of DateTimeOffset)

returnValue = instance.GetLockoutEndDateAsync(userId)
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 function GetLockoutEndDateAsync(
    userId : TKey
) : Task<DateTimeOffset>

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<DateTimeOffset>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity