Compartir a través de


UserDataProtectionManager.DataAvailabilityStateChanged Evento

Definición

Este evento invoca a los agentes de escucha cuando el estado de disponibilidad de los datos ha cambiado. Por ejemplo, cuando el dispositivo se bloquea, los datos protegidos en userDataAvailability "WhileUnlocked" no estarán disponibles. Este cambio de estado se puede escuchar mediante la suscripción a este evento.

// Register
event_token DataAvailabilityStateChanged(TypedEventHandler<UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void DataAvailabilityStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
UserDataProtectionManager::DataAvailabilityStateChanged_revoker DataAvailabilityStateChanged(auto_revoke_t, TypedEventHandler<UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<UserDataProtectionManager,UserDataAvailabilityStateChangedEventArgs> DataAvailabilityStateChanged;
function onDataAvailabilityStateChanged(eventArgs) { /* Your code */ }
userDataProtectionManager.addEventListener("dataavailabilitystatechanged", onDataAvailabilityStateChanged);
userDataProtectionManager.removeEventListener("dataavailabilitystatechanged", onDataAvailabilityStateChanged);
- or -
userDataProtectionManager.ondataavailabilitystatechanged = onDataAvailabilityStateChanged;
Public Custom Event DataAvailabilityStateChanged As TypedEventHandler(Of UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs) 

Tipo de evento

Se aplica a