DataPackage.Destroyed DataPackage.Destroyed DataPackage.Destroyed DataPackage.Destroyed DataPackage.Destroyed Event

Definition

Occurs when the DataPackage is destroyed.

public : event TypedEventHandler<DataPackage, object> Destroyed
// Register
event_token Destroyed(TypedEventHandler<DataPackage, object> const& handler) const;

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

// Revoke with event_revoker
Destroyed_revoker Destroyed(auto_revoke_t, TypedEventHandler<DataPackage, object> const& handler) const;
public event TypedEventHandler<DataPackage, object> Destroyed
Public Event Destroyed As TypedEventHandler (Of DataPackage, object)
function onDestroyed(eventArgs){/* Your code */}


dataPackage.addEventListener("destroyed", onDestroyed);
dataPackage.removeEventListener("destroyed", onDestroyed);

Remarks

In general, the system handles the destruction of a DataPackage object. Your app should not have to handle this event.