Share via


PackageVolume.FindPackagesForUser Method

Definition

Overloads

FindPackagesForUser(String)

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

FindPackagesForUser(String, String)

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

FindPackagesForUser(String, String, String)

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

FindPackagesForUser(String)

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

public:
 virtual IVector<Package ^> ^ FindPackagesForUser(Platform::String ^ userSecurityId) = FindPackagesForUser;
/// [Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityId")]
IVector<Package> FindPackagesForUser(winrt::hstring const& userSecurityId);
[Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityId")]
public IList<Package> FindPackagesForUser(string userSecurityId);
function findPackagesForUser(userSecurityId)
Public Function FindPackagesForUser (userSecurityId 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.

Returns

A collection of info about the specified packages.

Attributes

See also

Applies to

FindPackagesForUser(String, String)

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

public:
 virtual IVector<Package ^> ^ FindPackagesForUser(Platform::String ^ userSecurityId, Platform::String ^ packageFamilyName) = FindPackagesForUser;
/// [Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityIdPackageFamilyName")]
IVector<Package> FindPackagesForUser(winrt::hstring const& userSecurityId, winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityIdPackageFamilyName")]
public IList<Package> FindPackagesForUser(string userSecurityId, string packageFamilyName);
function findPackagesForUser(userSecurityId, packageFamilyName)
Public Function FindPackagesForUser (userSecurityId As String, packageFamilyName 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.

packageFamilyName
String

Platform::String

winrt::hstring

The package family name.

Returns

A collection of info about the specified packages.

Attributes

See also

Applies to

FindPackagesForUser(String, String, String)

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

public:
 virtual IVector<Package ^> ^ FindPackagesForUser(Platform::String ^ userSecurityId, Platform::String ^ packageName, Platform::String ^ packagePublisher) = FindPackagesForUser;
/// [Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityIdNamePublisher")]
IVector<Package> FindPackagesForUser(winrt::hstring const& userSecurityId, winrt::hstring const& packageName, winrt::hstring const& packagePublisher);
[Windows.Foundation.Metadata.Overload("FindPackagesByUserSecurityIdNamePublisher")]
public IList<Package> FindPackagesForUser(string userSecurityId, string packageName, string packagePublisher);
function findPackagesForUser(userSecurityId, packageName, packagePublisher)
Public Function FindPackagesForUser (userSecurityId As String, packageName As String, packagePublisher 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.

packageName
String

Platform::String

winrt::hstring

The full name of the package.

packagePublisher
String

Platform::String

winrt::hstring

The publisher of the package.

Returns

A collection of info about the specified packages.

Attributes

See also

Applies to