Share via


PackageCatalog.OpenForCurrentUser Method

Definition

Opens the catalog of app packages on the device that are available to the current user.

public:
 static PackageCatalog ^ OpenForCurrentUser();
 static PackageCatalog OpenForCurrentUser();
public static PackageCatalog OpenForCurrentUser();
function openForCurrentUser()
Public Shared Function OpenForCurrentUser () As PackageCatalog

Returns

The catalog of packages for the current user.

Windows requirements

App capabilities
packageManagement packageQuery

Remarks

In terms of capability requirements, OpenForCurrentUser requires that the caller has either the packageQuery or the packageManagement capability; or else that the caller has integrity level (IL) greater than or equal to Medium.

Applies to

See also