PackageCatalog.PackageInstalling 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 installing.
// Register
event_token PackageInstalling(TypedEventHandler<PackageCatalog, PackageInstallingEventArgs const&> const& handler) const;
// Revoke with event_token
void PackageInstalling(event_token const* cookie) const;
// Revoke with event_revoker
PackageCatalog::PackageInstalling_revoker PackageInstalling(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageInstallingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageInstallingEventArgs> PackageInstalling;
function onPackageInstalling(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packageinstalling", onPackageInstalling);
packageCatalog.removeEventListener("packageinstalling", onPackageInstalling);
- or -
packageCatalog.onpackageinstalling = onPackageInstalling;
Public Custom Event PackageInstalling As TypedEventHandler(Of PackageCatalog, PackageInstallingEventArgs)
Event Type
Remarks
If the PackageCatalog object is obtained using OpenForCurrentUser, package events will be received for all packages being installed for the current user.
If the PackageCatalog object is obtained using OpenForCurrentPackage, package events will be received for the current package or its related packages such as optional packages.