Share via


IUserLockoutStore<TUser>.GetLockoutEnabledAsync Metodo

Definizione

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

public:
 System::Threading::Tasks::Task<bool> ^ GetLockoutEnabledAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> GetLockoutEnabledAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetLockoutEnabledAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function GetLockoutEnabledAsync (user As TUser, cancellationToken As CancellationToken) 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.

Si applica a