Bagikan melalui


WebUIApplication.LeavingBackground Kejadian

Definisi

Terjadi saat aplikasi akan meninggalkan latar belakang dan sebelum UI aplikasi ditampilkan.

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

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

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

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)

Berlaku untuk