InstallationManager.FindPackages Method

Definition

Overloads

FindPackages()

Retrieves information about all packages installed across all users.

FindPackages(String, String)

Finds all installed packages with the specified name and publisher.

FindPackages()

Retrieves information about all packages installed across all users.

public:
 static IIterable<Package ^> ^ FindPackages();
/// [Windows.Foundation.Metadata.Overload("FindPackages")]
 static IIterable<Package> FindPackages();
[Windows.Foundation.Metadata.Overload("FindPackages")]
public static IEnumerable<Package> FindPackages();
function findPackages()
Public Shared Function FindPackages () As IEnumerable(Of Package)

Returns

If the method succeeds, an enumerable collection of package objects is returned. Each Package object in this collection contains information about the package, including but not limited to its name, publisher, version, and install location.

Attributes

Windows requirements

App capabilities
oemDeployment

Remarks

This method requires the ID_CAP_OEM_DEPLOYMENT capability and is not intended to be used directly from your code.

See also

Applies to

FindPackages(String, String)

Finds all installed packages with the specified name and publisher.

public:
 static IIterable<Package ^> ^ FindPackages(Platform::String ^ packageName, Platform::String ^ packagePublisher);
/// [Windows.Foundation.Metadata.Overload("FindPackagesByNamePublisher")]
 static IIterable<Package> FindPackages(winrt::hstring const& packageName, winrt::hstring const& packagePublisher);
[Windows.Foundation.Metadata.Overload("FindPackagesByNamePublisher")]
public static IEnumerable<Package> FindPackages(string packageName, string packagePublisher);
function findPackages(packageName, packagePublisher)
Public Shared Function FindPackages (packageName As String, packagePublisher As String) As IEnumerable(Of Package)

Parameters

packageName
String

Platform::String

winrt::hstring

The package name. This parameter cannot be null.

packagePublisher
String

Platform::String

winrt::hstring

The package publisher. This parameter cannot be null.

Returns

If the method succeeds, an enumerable collection of package objects with the same package name and publisher name is returned. Each Package object in this collection contains information about the package, including but not limited to its name, publisher, version, and install location. If no packages with the specified name and publisher are found, this method returns an empty list.

Attributes

See also

Applies to