PackageManager.FindPackage method

Applies to Windows only

Retrieves information about the specified package installed for any user.

Syntax


public:
Package^ FindPackage(
  String^ packageFullName
)

Parameters

packageFullName

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

The full name of the package. This parameter cannot be null.

Return value

Type: Package

If this method succeeds it returns a package object that contains information about the specified package, including but not limited to its name, publisher, version, and install location. If the specified package is not found, this method returns null.

Remarks

This method requires administrative privileges. The returned package may be installed for the current user or for another user.

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

 

 

Show:
© 2014 Microsoft