PackageCatalog PackageCatalog PackageCatalog PackageCatalog PackageCatalog Class

Definition

Provides access to app packages on the device.

public : sealed class PackageCatalog : IPackageCatalog, IPackageCatalog2
struct winrt::Windows::ApplicationModel::PackageCatalog : IPackageCatalog, IPackageCatalog2
public sealed class PackageCatalog : IPackageCatalog, IPackageCatalog2
Public NotInheritable Class PackageCatalog Implements IPackageCatalog, IPackageCatalog2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

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.

Methods

AddOptionalPackageAsync(String) AddOptionalPackageAsync(String) AddOptionalPackageAsync(String) AddOptionalPackageAsync(String) AddOptionalPackageAsync(String)

Adds an optional package to the package catalog.

AddResourcePackageAsync(String, String, AddResourcePackageOptions) AddResourcePackageAsync(String, String, AddResourcePackageOptions) AddResourcePackageAsync(String, String, AddResourcePackageOptions) AddResourcePackageAsync(String, String, AddResourcePackageOptions) AddResourcePackageAsync(String, String, AddResourcePackageOptions)

Adds a resource package to an existing app package.

OpenForCurrentPackage() OpenForCurrentPackage() OpenForCurrentPackage() OpenForCurrentPackage() OpenForCurrentPackage()

Opens the catalog of packages for the main package.

OpenForCurrentUser() OpenForCurrentUser() OpenForCurrentUser() OpenForCurrentUser() OpenForCurrentUser()

Opens the catalog of app packages on the device that are available to the current user.

RemoveOptionalPackagesAsync(IIterable<String>) RemoveOptionalPackagesAsync(IIterable<String>) RemoveOptionalPackagesAsync(IIterable<String>) RemoveOptionalPackagesAsync(IIterable<String>) RemoveOptionalPackagesAsync(IIterable<String>)

Removes installed optional app packages from the user account.

RemoveResourcePackagesAsync(IIterable<Package>) RemoveResourcePackagesAsync(IIterable<Package>) RemoveResourcePackagesAsync(IIterable<Package>) RemoveResourcePackagesAsync(IIterable<Package>) RemoveResourcePackagesAsync(IIterable<Package>)

Removes resource packages from an existing app package.

Events

PackageContentGroupStaging PackageContentGroupStaging PackageContentGroupStaging PackageContentGroupStaging PackageContentGroupStaging

The event that is fired when a package content group starts staging.

PackageInstalling PackageInstalling PackageInstalling PackageInstalling PackageInstalling

Indicates that an app package is installing.

PackageStaging PackageStaging PackageStaging PackageStaging PackageStaging

Indicates that an app package is staging.

PackageStatusChanged PackageStatusChanged PackageStatusChanged PackageStatusChanged PackageStatusChanged

Indicates that an app package has been removed or updated

PackageUninstalling PackageUninstalling PackageUninstalling PackageUninstalling PackageUninstalling

Indicates that an app package is uninstalling.

PackageUpdating PackageUpdating PackageUpdating PackageUpdating PackageUpdating

Indicates that an app package is being updated.

See Also