Share via


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetLockoutEnabledAsync Metodo

Definizione

Recupera un flag che indica se il blocco utente può essere abilitato per l'utente specificato.

public virtual System.Threading.Tasks.Task<bool> GetLockoutEnabledAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLockoutEnabledAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.GetLockoutEnabledAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function GetLockoutEnabledAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parametri

user
TUser

L'utente la cui possibilità di essere bloccata deve essere restituita.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona, true se un utente può essere bloccato; in caso contrario, false.

Implementazioni

Si applica a