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.
Provides access to app packages on the device.
public ref class PackageCatalog sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)] class PackageCatalog final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)] public sealed class PackageCatalog
Public NotInheritable Class PackageCatalog
Object IInspectable PackageCatalog
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Windows.Foundation.UniversalApiContract (introduced in v3.0)
Note that for PackageCatalog events:
If the PackageCatalog object is obtained using OpenForCurrentUser, package events will be received for all packages being installed for the current user.
If the PackageCatalog object is obtained using OpenForCurrentPackage, package events will be received for the current package or its related packages such as optional packages.
|Windows version||SDK version||Value added|
Adds an optional package to the package catalog.
|AddResourcePackageAsync(String, String, AddResourcePackageOptions)||
Adds a resource package to an existing app package.
Opens the catalog of packages for the main package.
Opens the catalog of app packages on the device that are available to the current user.
Removes installed optional app packages from the user account.
Removes resource packages from an existing app package.
The event that is fired when a package content group starts staging.
Indicates that an app package is installing.
Indicates that an app package is staging.
Indicates that an app package has been removed or updated
Indicates that an app package is uninstalling.
Indicates that an app package is being updated.