PackageCatalog.PackageUpdating Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menunjukkan bahwa paket aplikasi sedang diperbarui.
// 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)
Jenis Acara
Keterangan
Jika PackageCatalog diperoleh menggunakan OpenForCurrentPackage, aplikasi hanya menerima peristiwa paket untuk dirinya sendiri atau paket terkait seperti paket opsional.
Untuk mendapatkan peristiwa paket untuk semua paket pengguna, dapatkan PackageCatalog menggunakan OpenForCurrentUser sebagai gantinya.