PackageCatalog.PackageUpdating 事件

定义

指示正在更新应用包。

// Register
event_token PackageUpdating(TypedEventHandler<PackageCatalog, PackageUpdatingEventArgs const&> const& handler) const;

// Revoke with event_token
void PackageUpdating(event_token const* cookie) const;

// Revoke with event_revoker
PackageCatalog::PackageUpdating_revoker PackageUpdating(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageUpdatingEventArgs> PackageUpdating;
function onPackageUpdating(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packageupdating", onPackageUpdating);
packageCatalog.removeEventListener("packageupdating", onPackageUpdating);
- or -
packageCatalog.onpackageupdating = onPackageUpdating;
Public Custom Event PackageUpdating As TypedEventHandler(Of PackageCatalog, PackageUpdatingEventArgs) 

事件类型

注解

如果使用 OpenForCurrentPackage 获取 PackageCatalog,则应用仅接收自身或其相关包(如可选包)的包事件。

若要获取用户所有包的包事件,请改用 OpenForCurrentUser 获取 PackageCatalog。

适用于