MemoryManager.AppMemoryUsageDecreased Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Gerado quando o consumo de memória do aplicativo diminuiu para um valor menor na enumeração 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)