AppExtensionCatalog.PackageUninstalling AppExtensionCatalog.PackageUninstalling AppExtensionCatalog.PackageUninstalling AppExtensionCatalog.PackageUninstalling AppExtensionCatalog.PackageUninstalling Event

Definition

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

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

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

// Revoke with event_revoker
PackageUninstalling_revoker PackageUninstalling(auto_revoke_t, TypedEventHandler<AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs> const& handler) const;
public event TypedEventHandler<AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs> PackageUninstalling
Public Event PackageUninstalling As TypedEventHandler (Of AppExtensionCatalog, AppExtensionPackageUninstallingEventArgs)
function onPackageUninstalling(eventArgs){/* Your code */}


appExtensionCatalog.addEventListener("packageuninstalling", onPackageUninstalling);
appExtensionCatalog.removeEventListener("packageuninstalling", onPackageUninstalling);

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.