次の方法で共有


MemoryManager.AppMemoryUsageIncreased イベント

定義

アプリのメモリ消費量が 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) 

イベントの種類

適用対象