BackgroundEnergyManager.RecentEnergyUsageIncreased Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lorsque la consommation d’énergie de la tâche en arrière-plan a considérablement augmenté.
// Register
static event_token RecentEnergyUsageIncreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageIncreased(event_token const* cookie) const;
// Revoke with event_revoker
static BackgroundEnergyManager::RecentEnergyUsageIncreased_revoker RecentEnergyUsageIncreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token RecentEnergyUsageIncreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageIncreased(event_token const* cookie) const;
// Revoke with event_revoker
static BackgroundEnergyManager::RecentEnergyUsageIncreased_revoker RecentEnergyUsageIncreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RecentEnergyUsageIncreased;
[add: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
public static event System.EventHandler<object> RecentEnergyUsageIncreased;
function onRecentEnergyUsageIncreased(eventArgs) { /* Your code */ }
Windows.System.Power.BackgroundEnergyManager.addEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);
Windows.System.Power.BackgroundEnergyManager.removeEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);
- or -
Windows.System.Power.BackgroundEnergyManager.onrecentenergyusageincreased = onRecentEnergyUsageIncreased;
Public Shared Custom Event RecentEnergyUsageIncreased As EventHandler(Of Object)
Type d'événement
- Attributs
Remarques
Les notifications sont envoyées à chaque augmentation significative jusqu’au niveau d’utilisation de l’arrêt.