PowerManager.RemainingDischargeTimeChanged Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Se produce cuando RemainingDischargeTime cambia.
// Register
static event_token RemainingDischargeTimeChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RemainingDischargeTimeChanged(event_token const* cookie) const;
// Revoke with event_revoker
static PowerManager::RemainingDischargeTimeChanged_revoker RemainingDischargeTimeChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RemainingDischargeTimeChanged;
function onRemainingDischargeTimeChanged(eventArgs) { /* Your code */ }
Windows.System.Power.PowerManager.addEventListener("remainingdischargetimechanged", onRemainingDischargeTimeChanged);
Windows.System.Power.PowerManager.removeEventListener("remainingdischargetimechanged", onRemainingDischargeTimeChanged);
- or -
Windows.System.Power.PowerManager.onremainingdischargetimechanged = onRemainingDischargeTimeChanged;
Public Shared Custom Event RemainingDischargeTimeChanged As EventHandler(Of Object)