AppWindow.Destroying Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi ketika jendela sedang dihancurkan.
// 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)
Jenis Acara
TypedEventHandler<AppWindow,IInspectable>
Keterangan
Peristiwa dikirim setelah jendela dihapus dari layar. Gunakan kejadian ini untuk membersihkan sumber daya yang terkait dengan jendela.