PackageVolume.FindPackageForUser(String, String) Method

Definition

Gets a collection of info about the installed instances of the specified Package for the specified user or users.

public:
 virtual IVector<Package ^> ^ FindPackageForUser(Platform::String ^ userSecurityId, Platform::String ^ packageFullName) = FindPackageForUser;
/// [Windows.Foundation.Metadata.Overload("FindPackageByUserSecurityIdPackageFullName")]
IVector<Package> FindPackageForUser(winrt::hstring const& userSecurityId, winrt::hstring const& packageFullName);
[Windows.Foundation.Metadata.Overload("FindPackageByUserSecurityIdPackageFullName")]
public IList<Package> FindPackageForUser(string userSecurityId, string packageFullName);
function findPackageForUser(userSecurityId, packageFullName)
Public Function FindPackageForUser (userSecurityId As String, packageFullName As String) As IList(Of Package)

Parameters

userSecurityId
String

Platform::String

winrt::hstring

The security identifier (SID) of the user or users. An empty string denotes the current user. The Everyone SID (S-1-1-0) denotes all users. Any SID other than that of the current user requires administrative privileges.

packageFullName
String

Platform::String

winrt::hstring

The full name of the package.

Returns

A collection of info about all installed instances of the specified package for the specified user or users.

Attributes

Applies to

See also