Application.LeavingBackground Evento

Definizione

Si verifica quando l'app passa dallo sfondo al primo piano.

public:
 virtual event LeavingBackgroundEventHandler ^ LeavingBackground;
// Register
event_token LeavingBackground(LeavingBackgroundEventHandler const& handler) const;

// Revoke with event_token
void LeavingBackground(event_token const* cookie) const;

// Revoke with event_revoker
Application::LeavingBackground_revoker LeavingBackground(auto_revoke_t, LeavingBackgroundEventHandler const& handler) const;
public event LeavingBackgroundEventHandler LeavingBackground;
function onLeavingBackground(eventArgs) { /* Your code */ }
application.addEventListener("leavingbackground", onLeavingBackground);
application.removeEventListener("leavingbackground", onLeavingBackground);
- or -
application.onleavingbackground = onLeavingBackground;
Public Custom Event LeavingBackground As LeavingBackgroundEventHandler 

Tipo evento

Requisiti Windows

Famiglia di dispositivi
Windows 10 Anniversary Edition (è stato introdotto in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v3.0)

Commenti

L'evento LeavingBackground viene eseguito nello stesso appartamento in cui è stato registrato.

Si applica a

Vedi anche