PackageCatalog.PackageInstalling 事件

定义

指示正在安装应用包。

// 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) 

事件类型

注解

如果使用 OpenForCurrentUser 获取 PackageCatalog 对象,则将为当前用户安装的所有包接收包事件。

如果使用 OpenForCurrentPackage 获取 PackageCatalog 对象,则将为当前包或其相关包(如可选包)接收包事件。

适用于