UserManager<TUser, TKey>.SetLockoutEndDateAsync Method
Sets the time when a user lockout ends.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function SetLockoutEndDateAsync ( _
userId As TKey, _
lockoutEnd As DateTimeOffset _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim lockoutEnd As DateTimeOffset
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.SetLockoutEndDateAsync(userId, _
lockoutEnd)
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 function SetLockoutEndDateAsync(
userId : TKey,
lockoutEnd : DateTimeOffset
) : Task<IdentityResult>
- userId
Type: TKey
The user ID.
- lockoutEnd
Type: System.DateTimeOffset
The end time of lockout.
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class