Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PackageManager.FindPackageForUser method

Applies to Windows only

Retrieves information about a specific package installed for a specific user or for all users.

Syntax


public Package FindPackageForUser(
  string userSecurityId, 
  string packageFullName
)

Parameters

userSecurityId

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

This user security ID of the user for whom the specified package is being retrieved. If this parameter is null, the specified package is retrieved for the current user.

packageFullName

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

The full name of the package.

Return value

Type: Package

The package.

Remarks

This method requires administrative privileges if the user security ID specified is different from the user security ID of the calling user. Otherwise, an AccessDeniedException is thrown.

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