共用方式為


WebUIApplication.EnteredBackground 事件

定義

當應用程式在背景中開始執行時發生, (不會顯示應用程式) 的 UI。

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 

事件類型

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

適用於