Поделиться через


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) 

Тип события

Применяется к