Bagikan melalui


WebUIApplication.EnteredBackground Kejadian

Definisi

Terjadi ketika aplikasi telah mulai berjalan di latar belakang (tidak ada UI yang ditampilkan untuk aplikasi).

public:
 static event EnteredBackgroundEventHandler ^ EnteredBackground;
// Register
static event_token EnteredBackground(EnteredBackgroundEventHandler const& handler) const;

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

// Revoke with event_revoker
static WebUIApplication::EnteredBackground_revoker EnteredBackground(auto_revoke_t, EnteredBackgroundEventHandler const& handler) const;
public static event EnteredBackgroundEventHandler EnteredBackground;
function onEnteredBackground(eventArgs) { /* Your code */ }
Windows.UI.WebUI.WebUIApplication.addEventListener("enteredbackground", onEnteredBackground);
Windows.UI.WebUI.WebUIApplication.removeEventListener("enteredbackground", onEnteredBackground);
- or -
Windows.UI.WebUI.WebUIApplication.onenteredbackground = onEnteredBackground;
Public Shared Custom Event EnteredBackground As EnteredBackgroundEventHandler 

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