Compartir a través de


PowerManager.EffectivePowerModeChanged Evento

Definición

Se genera cuando ha cambiado el modo de alimentación eficaz del dispositivo.

// Register
static event_token EffectivePowerModeChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void EffectivePowerModeChanged(event_token const* cookie) const;

// Revoke with event_revoker
static PowerManager::EffectivePowerModeChanged_revoker EffectivePowerModeChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> EffectivePowerModeChanged;
function onEffectivePowerModeChanged(eventArgs) { /* Your code */ }
Microsoft.Windows.System.Power.PowerManager.addEventListener("effectivepowermodechanged", onEffectivePowerModeChanged);
Microsoft.Windows.System.Power.PowerManager.removeEventListener("effectivepowermodechanged", onEffectivePowerModeChanged);
- or -
Microsoft.Windows.System.Power.PowerManager.oneffectivepowermodechanged = onEffectivePowerModeChanged;
Public Shared Custom Event EffectivePowerModeChanged As EventHandler(Of Object) 

Tipo de evento

Comentarios

Para obtener el modo de energía efectivo actual en respuesta a este evento, use la propiedad EffectivePowerMode .

Se aplica a

Consulte también