PackageCatalog.PackageStaging Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for