Windows Dev Center

PackageManager.FindPackage method

Retrieves information about the specified package installed for any user.

Syntax


Public Function FindPackage(
  packageFullName As String 
) As Package

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2015 Microsoft