PackageCatalog.PackageStaging Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that an app package is staging.
// Register
event_token PackageStaging(TypedEventHandler<PackageCatalog, PackageStagingEventArgs const&> const& handler) const;
// Revoke with event_token
void PackageStaging(event_token const* cookie) const;
// Revoke with event_revoker
PackageCatalog::PackageStaging_revoker PackageStaging(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageStagingEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageStagingEventArgs> PackageStaging;
function onPackageStaging(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packagestaging", onPackageStaging);
packageCatalog.removeEventListener("packagestaging", onPackageStaging);
- or -
packageCatalog.onpackagestaging = onPackageStaging;
Public Custom Event PackageStaging As TypedEventHandler(Of PackageCatalog, PackageStagingEventArgs)
Event Type
Remarks
An app package is staged when it is added to the device but is not yet registered.
If the PackageCatalog is obtained using OpenForCurrentPackage, the app only receives package events for itself or its related packages such as optional packages.
To get package events for all packages being staged by a user, obtain the PackageCatalog using OpenForCurrentUser instead.
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla