PackageManager.FindPackagesForUserWithPackageTypes PackageManager.FindPackagesForUserWithPackageTypes PackageManager.FindPackagesForUserWithPackageTypes PackageManager.FindPackagesForUserWithPackageTypes Method

Definition

Overloads

FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes)

Finds packages of specific types that are installed for the specified user.

FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes)

Retrieves information about a specified family of packages and of specific types that are installed for the specified user.

FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes)

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

FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes)

Finds packages of specific types that are installed for the specified user.

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

Parameters

userSecurityId
String String

The user security identifier (SID). If this parameter is null, the packages are retrieved for the current user. Any user SID other than that of current user requires administrative privileges.

packageTypes
PackageTypes PackageTypes

A combination of PackageTypes -typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.

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. The packageTypes parameter determines the types of packages to return.

Additional features and requirements

Capabilities
packageQuery

Remarks

This method and its overloads require administrative privileges if the user SID specified is different from the user SID of the calling user. Otherwise, an AccessDeniedException is thrown.

See also

FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes)

Retrieves information about a specified family of packages and of specific types that are installed for the specified user.

public : IIterable<Package> FindPackagesForUserWithPackageTypes(Platform::String userSecurityId, Platform::String packageFamilyName, PackageTypes packageTypes)
IIterable<Package> FindPackagesForUserWithPackageTypes(winrt::hstring userSecurityId, winrt::hstring packageFamilyName, PackageTypes packageTypes) const;
public IEnumerable<Package> FindPackagesForUserWithPackageTypes(String userSecurityId, String packageFamilyName, PackageTypes packageTypes)
Public Function FindPackagesForUserWithPackageTypes(userSecurityId As String, packageFamilyName As String, packageTypes As PackageTypes) 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. Any user SID other than that of current user requires administrative privileges.

packageFamilyName
String String

The family name of packages to find. This parameter can't be null.

packageTypes
PackageTypes PackageTypes

A combination of PackageTypes -typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.

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. The packageTypes parameter determines the types of packages to return.

Additional features and requirements

Capabilities
packageQuery
See also

FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes)

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

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

Parameters

userSecurityId
String String

The user security identifier (SID). If this parameter is null, the packages are retrieved for the current user. Any user SID other than that of current user requires administrative privileges.

packageName
String String

The package name. This parameter can't be null.

packagePublisher
String String

The package publisher. This parameter can't be null.

packageTypes
PackageTypes PackageTypes

A combination of PackageTypes -typed values that are combined by using a bitwise OR operation. The resulting value specifies the types of packages to be included in the result set.

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 publisher and family name are found, this method returns an empty list. The packageTypes parameter determines the types of packages to return.

Additional features and requirements

Capabilities
packageQuery
See also