UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.GetLockoutEnabledAsync Method (TUser)

 

Asynchronously returns whether the user can be locked out.

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

Syntax

public virtual Task<bool> GetLockoutEnabledAsync(
    TUser user
)
public:
virtual Task<bool>^ GetLockoutEnabledAsync(
    TUser user
)
abstract GetLockoutEnabledAsync : 
        user:'TUser -> Task<bool>
override GetLockoutEnabledAsync : 
        user:'TUser -> Task<bool>
Public Overridable Function GetLockoutEnabledAsync (
    user As TUser
) As Task(Of Boolean)

Parameters

  • user
    Type: TUser

    The user.

Return Value

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

true if the user can be locked out; otherwise, false.

Implements

IUserLockoutStore<TUser, TKey>.GetLockoutEnabledAsync(TUser)

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top