PackageCatalog.PackageStatusChanged 事件

定义

指示应用包已删除或更新

// Register
event_token PackageStatusChanged(TypedEventHandler<PackageCatalog, PackageStatusChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PackageCatalog::PackageStatusChanged_revoker PackageStatusChanged(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageStatusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageStatusChangedEventArgs> PackageStatusChanged;
function onPackageStatusChanged(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packagestatuschanged", onPackageStatusChanged);
packageCatalog.removeEventListener("packagestatuschanged", onPackageStatusChanged);
- or -
packageCatalog.onpackagestatuschanged = onPackageStatusChanged;
Public Custom Event PackageStatusChanged As TypedEventHandler(Of PackageCatalog, PackageStatusChangedEventArgs) 

事件类型

TypedEventHandler<PackageCatalog,PackageStatusChangedEventArgs>

注解

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

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

适用于