Share via


AppWindow.Destroying 이벤트

정의

창이 제거될 때 발생합니다.

// Register
event_token Destroying(TypedEventHandler<AppWindow, IInspectable const&> const& handler) const;

// Revoke with event_token
void Destroying(event_token const* cookie) const;

// Revoke with event_revoker
AppWindow::Destroying_revoker Destroying(auto_revoke_t, TypedEventHandler<AppWindow, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppWindow,object> Destroying;
function onDestroying(eventArgs) { /* Your code */ }
appWindow.addEventListener("destroying", onDestroying);
appWindow.removeEventListener("destroying", onDestroying);
- or -
appWindow.ondestroying = onDestroying;
Public Custom Event Destroying As TypedEventHandler(Of AppWindow, Object) 

이벤트 유형

설명

창이 화면에서 제거된 후 이벤트가 전송됩니다. 이 이벤트를 사용하여 창과 연결된 리소스를 클린 수행합니다.

적용 대상

추가 정보