Freigeben über


WebUIApplication.EnteredBackground Ereignis

Definition

Tritt auf, wenn die App im Hintergrund ausgeführt wird (für die App wird keine Benutzeroberfläche angezeigt).

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 

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows 10 Anniversary Edition (eingeführt in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v3.0)

Gilt für: