Udostępnij za pośrednictwem


PackageCatalog.PackageInstalling Event

Definition

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.

Applies to