PackageManager.FindPackagesWithPackageTypes Method
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.
Overloads
FindPackagesWithPackageTypes(String, PackageTypes) |
Retrieves information about a specified family of Packages and specific package types that are installed across all users. |
FindPackagesWithPackageTypes(PackageTypes) |
Retrieves information about specific Package types that are installed across all users. |
FindPackagesWithPackageTypes(String, String, PackageTypes) |
Finds all installed Packages of specific types with the specified name and publisher. |
FindPackagesWithPackageTypes(String, PackageTypes)
public:
virtual IIterable<Package ^> ^ FindPackagesWithPackageTypes(Platform::String ^ packageFamilyName, PackageTypes packageTypes) = FindPackagesWithPackageTypes;
/// [Windows.Foundation.Metadata.Overload("FindPackagesByPackageFamilyNameWithPackageTypes")]
IIterable<Package> FindPackagesWithPackageTypes(winrt::hstring const& packageFamilyName, PackageTypes const& packageTypes);
[Windows.Foundation.Metadata.Overload("FindPackagesByPackageFamilyNameWithPackageTypes")]
public IEnumerable<Package> FindPackagesWithPackageTypes(string packageFamilyName, PackageTypes packageTypes);
function findPackagesWithPackageTypes(packageFamilyName, packageTypes)
Public Function FindPackagesWithPackageTypes (packageFamilyName As String, packageTypes As PackageTypes) As IEnumerable(Of Package)
Parameters
- packageFamilyName
-
String
Platform::String
winrt::hstring
The package family name. This parameter can't be null.
- packageTypes
- PackageTypes
A combination of PackageTypes-typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.
Returns
If the method succeeds, an enumerable collection of package objects with the same package family 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 package family name are found, this method returns an empty list. The packageTypes parameter determines the types of packages to return.
- Attributes
Windows requirements
App capabilities |
packageQuery
|
See also
- FindPackagesWithPackageTypes(PackageTypes)
- FindPackagesWithPackageTypes(String, String, PackageTypes)
- Package
Applies to
FindPackagesWithPackageTypes(PackageTypes)
public:
virtual IIterable<Package ^> ^ FindPackagesWithPackageTypes(PackageTypes packageTypes) = FindPackagesWithPackageTypes;
/// [Windows.Foundation.Metadata.Overload("FindPackagesWithPackageTypes")]
IIterable<Package> FindPackagesWithPackageTypes(PackageTypes const& packageTypes);
[Windows.Foundation.Metadata.Overload("FindPackagesWithPackageTypes")]
public IEnumerable<Package> FindPackagesWithPackageTypes(PackageTypes packageTypes);
function findPackagesWithPackageTypes(packageTypes)
Public Function FindPackagesWithPackageTypes (packageTypes As PackageTypes) As IEnumerable(Of Package)
Parameters
- packageTypes
- PackageTypes
A combination of PackageTypes-typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.
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. The packageTypes parameter determines the types of packages to return.
- Attributes
Windows requirements
App capabilities |
packageQuery
|
Remarks
This method and its overloads require administrative privileges.
See also
- FindPackagesWithPackageTypes(String, String, PackageTypes)
- FindPackagesWithPackageTypes(String, PackageTypes)
- Package
Applies to
FindPackagesWithPackageTypes(String, String, PackageTypes)
public:
virtual IIterable<Package ^> ^ FindPackagesWithPackageTypes(Platform::String ^ packageName, Platform::String ^ packagePublisher, PackageTypes packageTypes) = FindPackagesWithPackageTypes;
/// [Windows.Foundation.Metadata.Overload("FindPackagesByNamePublisherWithPackageTypes")]
IIterable<Package> FindPackagesWithPackageTypes(winrt::hstring const& packageName, winrt::hstring const& packagePublisher, PackageTypes const& packageTypes);
[Windows.Foundation.Metadata.Overload("FindPackagesByNamePublisherWithPackageTypes")]
public IEnumerable<Package> FindPackagesWithPackageTypes(string packageName, string packagePublisher, PackageTypes packageTypes);
function findPackagesWithPackageTypes(packageName, packagePublisher, packageTypes)
Public Function FindPackagesWithPackageTypes (packageName As String, packagePublisher As String, packageTypes As PackageTypes) As IEnumerable(Of Package)
Parameters
- packageName
-
String
Platform::String
winrt::hstring
The package name. This parameter can't be null.
- packagePublisher
-
String
Platform::String
winrt::hstring
The package publisher. This parameter can't be null.
- packageTypes
- PackageTypes
A combination of PackageTypes-typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.
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. The packageTypes parameter determines the types of packages to return.
- Attributes
Windows requirements
App capabilities |
packageQuery
|
See also
- FindPackagesWithPackageTypes(PackageTypes)
- FindPackagesWithPackageTypes(String, PackageTypes)
- Package