EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

PackageManager.FindPackages(String) method

Applies to Windows only

Retrieves information about a specified family of packages installed across all users.

Syntax


public IEnumerable<Package> FindPackages(
  string packageFamilyName
)

Parameters

packageFamilyName

Type: System.String [.NET] | Platform::String [C++]

The package family name. This parameter cannot be null.

Return value

Type: IIterable<Package> [C++] | System.Collections.Generic.IEnumerable<Package> [.NET]

If the method succeeds, an enumerable collection of package objects with the same package family name will be 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.

Remarks

This method requires administrative privileges. Each package in the IIterable(Package) collection may be installed for the current user or for another user. This method differs from FindPackages(String packageName, String pulisherName) method. Here the packageFamilyName parameter is a single string, comprised of the package name and package publisher hash.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Management.Deployment
Windows::Management::Deployment [C++]

Metadata

Windows.winmd

See also

PackageManager
FindPackages()
FindPackages(String, String)

 

 

Mostrar:
© 2014 Microsoft