MemoryManager.AppMemoryUsageIncreased É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.
Déclenché lorsque la consommation de mémoire de l’application a augmenté pour atteindre une valeur plus élevée dans l’énumération AppMemoryUsageLevel .
// Register
static event_token AppMemoryUsageIncreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void AppMemoryUsageIncreased(event_token const* cookie) const;
// Revoke with event_revoker
static MemoryManager::AppMemoryUsageIncreased_revoker AppMemoryUsageIncreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> AppMemoryUsageIncreased;
function onAppMemoryUsageIncreased(eventArgs) { /* Your code */ }
Windows.System.MemoryManager.addEventListener("appmemoryusageincreased", onAppMemoryUsageIncreased);
Windows.System.MemoryManager.removeEventListener("appmemoryusageincreased", onAppMemoryUsageIncreased);
- or -
Windows.System.MemoryManager.onappmemoryusageincreased = onAppMemoryUsageIncreased;
Public Shared Custom Event AppMemoryUsageIncreased As EventHandler(Of Object)