ApplicationManager.GetInstalledPackages Method

Gets the collection of installed packages and the apps within each package.

Syntax

public:
static IVectorView<PackageInfo>^ GetInstalledPackages()  

Return value

Type: IVectorView<PackageInfo

  Vector of PackageInfo objects containing information on the installed packages on the console.

Example

//Get the list of packages and apps and translate it into a flat list of apps
_getAppList: function () {
    var applications = new Array();
    var installPackages = appManager.getInstalledPackages()
    var index = 0;	
    installPackages.forEach(
        function iteratePackage(installedPackage) {
            installedPackage.applications.forEach(
                function addPFN(applicationInfo) {
                    var newApp = new application(installedPackage, applicationInfo);
                    applications[index] = newApp;
                    index++;
                }
            )
        }
    )
    return applications;
},  

Requirements

Namespace: Microsoft.Xbox.Tools.ConsoleExtensions

Metadata: microsoft.xbox.tools.consoleextensions.winmd

See also

Reference

ApplicationManager Class

ApplicationManager Members

Microsoft.Xbox.Tools.ConsoleExtensions Namespace