共用方式為


MemoryManager.AppMemoryUsageDecreased 事件

定義

當應用程式的記憶體耗用量降低為 AppMemoryUsageLevel 列舉中的較低值時引發。

// 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) 

事件類型

適用於