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


MemoryManager.AppMemoryUsageLimitChanging Событие

Определение

Возникает непосредственно перед изменением предела общего объема памяти, который может использовать приложение.

// Register
static event_token AppMemoryUsageLimitChanging(EventHandler<AppMemoryUsageLimitChangingEventArgs> const& handler) const;

// Revoke with event_token
static void AppMemoryUsageLimitChanging(event_token const* cookie) const;

// Revoke with event_revoker
static MemoryManager::AppMemoryUsageLimitChanging_revoker AppMemoryUsageLimitChanging(auto_revoke_t, EventHandler<AppMemoryUsageLimitChangingEventArgs> const& handler) const;
public static event System.EventHandler<AppMemoryUsageLimitChangingEventArgs> AppMemoryUsageLimitChanging;
function onAppMemoryUsageLimitChanging(eventArgs) { /* Your code */ }
Windows.System.MemoryManager.addEventListener("appmemoryusagelimitchanging", onAppMemoryUsageLimitChanging);
Windows.System.MemoryManager.removeEventListener("appmemoryusagelimitchanging", onAppMemoryUsageLimitChanging);
- or -
Windows.System.MemoryManager.onappmemoryusagelimitchanging = onAppMemoryUsageLimitChanging;
Public Shared Custom Event AppMemoryUsageLimitChanging As EventHandler(Of AppMemoryUsageLimitChangingEventArgs) 

Тип события

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