Window.Closed 이벤트

정의

창이 닫혔을 때 발생합니다.

// Register
event_token Closed(TypedEventHandler<IInspectable, WindowEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
Window::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<IInspectable, WindowEventArgs const&> const& handler) const;
public event TypedEventHandler<object,WindowEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
window.addEventListener("closed", onClosed);
window.removeEventListener("closed", onClosed);
- or -
window.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of Object, WindowEventArgs) 

이벤트 유형

설명

Closed 이벤트는 Window 가 닫히면 발생합니다.

앱에 대해 닫을 마지막 창이면 애플리케이션이 종료됩니다.

적용 대상

추가 정보