WebUIApplication.LeavingBackground 이벤트

정의

앱이 백그라운드에서 나가려고 할 때와 앱의 UI가 표시되기 전에 발생합니다.

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 

이벤트 유형

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)

적용 대상