IUserLockoutStore<TUser, TKey>.SetLockoutEnabledAsync Method (TUser, Boolean)
Asynchronously sets whether the user can be locked out.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task SetLockoutEnabledAsync(
TUser user,
bool enabled
)
Task^ SetLockoutEnabledAsync(
TUser user,
bool enabled
)
abstract SetLockoutEnabledAsync :
user:'TUser *
enabled:bool -> Task
Function SetLockoutEnabledAsync (
user As TUser,
enabled As Boolean
) As Task
Parameters
user
Type: TUserThe user.
enabled
Type: System.Booleantrue if the user can be locked out; otherwise, false.
Return Value
Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
See Also
IUserLockoutStore<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top