MemoryManager.AppMemoryUsageDecreased Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when the app's memory consumption has decreased to a lower value in the AppMemoryUsageLevel enumeration.
// Register
static event_token AppMemoryUsageDecreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void AppMemoryUsageDecreased(event_token const* cookie) const;
// Revoke with event_revoker
static MemoryManager::AppMemoryUsageDecreased_revoker AppMemoryUsageDecreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> AppMemoryUsageDecreased;
function onAppMemoryUsageDecreased(eventArgs) { /* Your code */ }
Windows.System.MemoryManager.addEventListener("appmemoryusagedecreased", onAppMemoryUsageDecreased);
Windows.System.MemoryManager.removeEventListener("appmemoryusagedecreased", onAppMemoryUsageDecreased);
- or -
Windows.System.MemoryManager.onappmemoryusagedecreased = onAppMemoryUsageDecreased;
Public Shared Custom Event AppMemoryUsageDecreased As EventHandler(Of Object)