Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously sets whether the user can be locked out.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Function SetLockoutEnabledAsync ( _
user As TUser, _
enabled As Boolean _
) As Task
'Usage
Dim instance As IUserLockoutStore
Dim user As TUser
Dim enabled As Boolean
Dim returnValue As Task
returnValue = instance.SetLockoutEnabledAsync(user, _
enabled)
Task SetLockoutEnabledAsync(
TUser user,
bool enabled
)
Task^ SetLockoutEnabledAsync(
TUser user,
bool enabled
)
abstract SetLockoutEnabledAsync :
user:'TUser *
enabled:bool -> Task
function SetLockoutEnabledAsync(
user : TUser,
enabled : boolean
) : Task
- user
Type: TUser
The user.
- enabled
Type: System.Boolean
true if the user can be locked out; otherwise, false.
Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
IUserLockoutStore<TUser, TKey> Interface