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

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

Syntax


Public Function FindPackageForUser(
  userSecurityId As String,  
  packageFullName As String 
) As Package

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 (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 (operating system)

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