共用方式為


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 物件,則會接收目前套件或其相關套件的套件事件,例如選擇性套件。

適用於