Share via


AppExtensionCatalog.PackageUninstalling Event

Definition

Event that is fired when an extension package is being uninstalled.

// Register
event_token PackageUninstalling(TypedEventHandler<AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppExtensionCatalog::PackageUninstalling_revoker PackageUninstalling(auto_revoke_t, TypedEventHandler<AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs const&> const& handler) const;
public event TypedEventHandler<AppExtensionCatalog,AppExtensionPackageUninstallingEventArgs> PackageUninstalling;
function onPackageUninstalling(eventArgs) { /* Your code */ }
appExtensionCatalog.addEventListener("packageuninstalling", onPackageUninstalling);
appExtensionCatalog.removeEventListener("packageuninstalling", onPackageUninstalling);
- or -
appExtensionCatalog.onpackageuninstalling = onPackageUninstalling;
Public Custom Event PackageUninstalling As TypedEventHandler(Of AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs) 

Event Type

Remarks

Update the list of extensions that you are tracking when you handle this event to reflect the ones that have been unloaded. If the user re-installs the package, then a PackageInstalled event will be raised and you can re-add the extensions while handling that event just as you would the addition of any extension.

Like PackageUpdating, this event only passes the package that is being uninstalled and not a list of AppExtensions.

Applies to