PackageManager.FindPackagesForUser PackageManager.FindPackagesForUser PackageManager.FindPackagesForUser PackageManager.FindPackagesForUser Method

Definition

Overloads

FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String)

Finds all packages installed for the specified user.

FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String)

Retrieves information about a specified family of packages installed for a specific user.

FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String)

Retrieves information about all packages with the specified package name and publisher name, installed for a specific user.

FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String)

Finds all packages installed for the specified user.

public : IIterable<Package> FindPackagesForUser(Platform::String userSecurityId)
IIterable<Package> FindPackagesForUser(winrt::hstring userSecurityId) const;
public IEnumerable<Package> FindPackagesForUser(String userSecurityId)
Public Function FindPackagesForUser(userSecurityId As String) As IEnumerable<Package>(Of Package)

Parameters

userSecurityId
String String

The user security identifier (SID). If this parameter is string.Empty, the packages are retrieved for the current user.

Returns

IEnumerable<Package> IEnumerable<Package>

If the method succeeds, an enumerable collection of package objects is returned. Each Package object in this collection contains information about the package, including but not limited to its name, publisher, version, and install location.

Additional features and requirements

Capabilities
packageQuery

Remarks

This method and its overloads require administrative privileges if the user security ID specified is different from the user security ID of the calling user. Otherwise, an AccessDeniedException is thrown. Similar to the FindPackages method, this method and its overloads can be used to enumerate the installed packages for a particular user.

See also

FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String)

Retrieves information about a specified family of packages installed for a specific user.

public : IIterable<Package> FindPackagesForUser(Platform::String userSecurityId, Platform::String packageFamilyName)
IIterable<Package> FindPackagesForUser(winrt::hstring userSecurityId, winrt::hstring packageFamilyName) const;
public IEnumerable<Package> FindPackagesForUser(String userSecurityId, String packageFamilyName)
Public Function FindPackagesForUser(userSecurityId As String, packageFamilyName As String) As IEnumerable<Package>(Of Package)

Parameters

userSecurityId
String String

The user security identifier (SID). If this parameter is String.Empty, the packages are retrieved for the current user.

packageFamilyName
String String

The family name of packages to find. This parameter cannot be null.

Returns

IEnumerable<Package> IEnumerable<Package>

If the method succeeds, an enumerable collection of package objects is returned. Each Package object in this collection contains information about the package, including but not limited to its name, publisher, version, and install location. If no packages with the specified package family name are found, this method returns an empty list.

Additional features and requirements

Capabilities
packageQuery
See also

FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String)

Retrieves information about all packages with the specified package name and publisher name, installed for a specific user.

public : IIterable<Package> FindPackagesForUser(Platform::String userSecurityId, Platform::String packageName, Platform::String packagePublisher)
IIterable<Package> FindPackagesForUser(winrt::hstring userSecurityId, winrt::hstring packageName, winrt::hstring packagePublisher) const;
public IEnumerable<Package> FindPackagesForUser(String userSecurityId, String packageName, String packagePublisher)
Public Function FindPackagesForUser(userSecurityId As String, packageName As String, packagePublisher As String) As IEnumerable<Package>(Of Package)

Parameters

userSecurityId
String String

The user security identifier (SID). If this parameter is an empty string (""), the packages are retrieved for the current user.

packageName
String String

The package name. This parameter cannot be null.

packagePublisher
String String

The package publisher. This parameter cannot be null.

Returns

IEnumerable<Package> IEnumerable<Package>

If the method succeeds, an enumerable collection of package objects is returned. Each Package object in this collection contains information about the package, including but not limited to its name, publisher, version, and install location. If no packages with the specified name and publisher are found, this method returns an empty list.

Additional features and requirements

Capabilities
packageQuery
See also