共用方式為


DataPackage.Destroyed 事件

定義

發生于 DataPackage 終結時。

// Register
event_token Destroyed(TypedEventHandler<DataPackage, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DataPackage::Destroyed_revoker Destroyed(auto_revoke_t, TypedEventHandler<DataPackage, IInspectable const&> const& handler) const;
public event TypedEventHandler<DataPackage,object> Destroyed;
function onDestroyed(eventArgs) { /* Your code */ }
dataPackage.addEventListener("destroyed", onDestroyed);
dataPackage.removeEventListener("destroyed", onDestroyed);
- or -
dataPackage.ondestroyed = onDestroyed;
Public Custom Event Destroyed As TypedEventHandler(Of DataPackage, Object) 

事件類型

備註

一般而言,系統會處理 DataPackage 物件的解構。 您的應用程式不應該必須處理此事件。

適用於