Share via


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

 

Determines whether the lockout is enabled for the user.

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

Syntax

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 Overridable Function GetLockoutEnabledAsync (
    userId As TKey
) As Task(Of Boolean)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The task representing the asynchronous operation.

See Also

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

Return to top