Share via


PackageCatalog.PackageUninstalling Event

Definition

Indicates that an app package is uninstalling.

// Register
event_token PackageUninstalling(TypedEventHandler<PackageCatalog, PackageUninstallingEventArgs const&> const& handler) const;

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

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

Event Type

Remarks

If the PackageCatalog is obtained using OpenForCurrentPackage, the app only receives package events for itself or its related packages such as optional packages.

To get package events for all of a user's packages, obtain the PackageCatalog using OpenForCurrentUser instead.

Applies to