UserManager<TUser, TKey>.GetLockoutEnabledAsync Method
Determines whether the lockout is enabled for the user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function GetLockoutEnabledAsync ( _
userId As TKey _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of Boolean)
returnValue = instance.GetLockoutEnabledAsync(userId)
public virtual Task<bool> GetLockoutEnabledAsync(
TKey userId
)
public:
virtual Task<bool>^ GetLockoutEnabledAsync(
TKey userId
)
abstract GetLockoutEnabledAsync :
userId:'TKey -> Task<bool>
override GetLockoutEnabledAsync :
userId:'TKey -> Task<bool>
public function GetLockoutEnabledAsync(
userId : TKey
) : Task<boolean>
- userId
Type: TKey
The user ID.
Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class