다음을 통해 공유


CoreApplication.Suspending 이벤트

정의

앱이 일시 중단되면 발생합니다.

// Register
static event_token Suspending(EventHandler<SuspendingEventArgs> const& handler) const;

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

// Revoke with event_revoker
static CoreApplication::Suspending_revoker Suspending(auto_revoke_t, EventHandler<SuspendingEventArgs> const& handler) const;
public static event System.EventHandler<SuspendingEventArgs> Suspending;
function onSuspending(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Core.CoreApplication.addEventListener("suspending", onSuspending);
Windows.ApplicationModel.Core.CoreApplication.removeEventListener("suspending", onSuspending);
- or -
Windows.ApplicationModel.Core.CoreApplication.onsuspending = onSuspending;
Public Shared Custom Event Suspending As EventHandler(Of SuspendingEventArgs) 

이벤트 유형

설명

Windows Phone 8

이 API는 네이티브 앱에서만 지원됩니다.

적용 대상