共用方式為


IClosableNotifier.Closed 事件

定義

當物件在 FrameworkClosed 事件之後 (處置) 關閉時發生,以通知應用程式物件已關閉。

public:
 event ClosableNotifierHandler ^ Closed;
// Register
event_token Closed(ClosableNotifierHandler const& handler) const;

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

// Revoke with event_revoker
IClosableNotifier::Closed_revoker Closed(auto_revoke_t, ClosableNotifierHandler const& handler) const;
event ClosableNotifierHandler Closed;
function onClosed(eventArgs) { /* Your code */ }
iClosableNotifier.addEventListener("closed", onClosed);
iClosableNotifier.removeEventListener("closed", onClosed);
- or -
iClosableNotifier.onclosed = onClosed;
Event Closed As ClosableNotifierHandler 

事件類型

適用於

另請參閱