PackageExtensionCatalog.PackageUninstalling 事件

定义

卸载扩展包时触发的事件。

// Register
event_token PackageUninstalling(TypedEventHandler<PackageExtensionCatalog, PackageExtensionPackageUninstallingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PackageExtensionCatalog::PackageUninstalling_revoker PackageUninstalling(auto_revoke_t, TypedEventHandler<PackageExtensionCatalog, PackageExtensionPackageUninstallingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageExtensionCatalog,PackageExtensionPackageUninstallingEventArgs> PackageUninstalling;
function onPackageUninstalling(eventArgs) { /* Your code */ }
packageExtensionCatalog.addEventListener("packageuninstalling", onPackageUninstalling);
packageExtensionCatalog.removeEventListener("packageuninstalling", onPackageUninstalling);
- or -
packageExtensionCatalog.onpackageuninstalling = onPackageUninstalling;
Public Custom Event PackageUninstalling As TypedEventHandler(Of PackageExtensionCatalog, PackageExtensionPackageUninstallingEventArgs) 

事件类型

注解

更新处理此事件时要跟踪的扩展的列表,以反映已卸载的扩展。 如果用户重新安装包,则会引发 PackageInstalled 事件,你可以在处理该事件时重新添加扩展,就像添加任何扩展一样。

PackageUpdating 一样,此事件仅传递正在卸载的包,而不传递 PackageExtensions 列表。

适用于

另请参阅