Partager via


CoreApplication.Exiting Événement

Définition

Se produit lorsque l’application s’arrête.

// Register
static event_token Exiting(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static CoreApplication::Exiting_revoker Exiting(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> Exiting;
function onExiting(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Core.CoreApplication.addEventListener("exiting", onExiting);
Windows.ApplicationModel.Core.CoreApplication.removeEventListener("exiting", onExiting);
- or -
Windows.ApplicationModel.Core.CoreApplication.onexiting = onExiting;
Public Shared Custom Event Exiting As EventHandler(Of Object) 

Type d'événement

Remarques

Windows Phone 8

Cette API est prise en charge uniquement dans les applications natives.

S’applique à