Share via


PackageExtensionCatalog.PackageUninstalling Event

Definition

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

// Register
event_token PackageUninstalling(TypedEventHandler<PackageExtensionCatalog, PackageExtensionPackageUninstallingEventArgs const&> const& handler) const;

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

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

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 PackageExtensions.

Applies to

See also