PackageCatalog.PackageUpdating Event

Definition

Indicates that an app package is being updated.

// Register
event_token PackageUpdating(TypedEventHandler<PackageCatalog, PackageUpdatingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PackageCatalog::PackageUpdating_revoker PackageUpdating(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageUpdatingEventArgs> PackageUpdating;
function onPackageUpdating(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packageupdating", onPackageUpdating);
packageCatalog.removeEventListener("packageupdating", onPackageUpdating);
- or -
packageCatalog.onpackageupdating = onPackageUpdating;
Public Custom Event PackageUpdating As TypedEventHandler(Of PackageCatalog, PackageUpdatingEventArgs) 

Event Type

TypedEventHandler<PackageCatalog,PackageUpdatingEventArgs>

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