Windows Dev Center

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.

PackageUserInformation class

Provides information about the users of an installed package.

Important  You can't use this class in a Windows Store app.

Syntax


Public NotInheritable Class PackageUserInformation

Members

The PackageUserInformation class has these types of members:

Methods

The PackageUserInformation class inherits methods from the Object class.

Properties

The PackageUserInformation class has these properties.

PropertyAccess typeDescription

InstallState

Read-onlyGets the install state of the package for the user.

UserSecurityId

Read-onlyGets the security identifier (SID) of the package user.

 

Remarks

To enumerate the users who have installed a package, use the PackageManager.FindUsers method.

Examples

Call the PackageManager.FindUsers method to enumerate the users who have installed a package. This example displays the information in the PackageUserInformation.UserSecurityId property.

No code example is currently available or this language may not be supported.

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 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
Samples
Enumerate app packages sample
Enumerate app packages by name and publisher sample
Concepts
App packages and deployment
Reference
PackageManager

 

 

Show:
© 2015 Microsoft