PackageCatalog.PackageStaging Event

Definition

Indicates that an app package is staging.

// Register
event_token PackageStaging(TypedEventHandler<PackageCatalog, PackageStagingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PackageCatalog::PackageStaging_revoker PackageStaging(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageStagingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageStagingEventArgs> PackageStaging;
function onPackageStaging(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packagestaging", onPackageStaging);
packageCatalog.removeEventListener("packagestaging", onPackageStaging);
- or -
packageCatalog.onpackagestaging = onPackageStaging;
Public Custom Event PackageStaging As TypedEventHandler(Of PackageCatalog, PackageStagingEventArgs) 

Event Type

Remarks

An app package is staged when it is added to the device but is not yet registered.

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 packages being staged by a user, obtain the PackageCatalog using OpenForCurrentUser instead.

Applies to