Package.UserExternalLocation Property

Definition

Gets the location of the per-user external folder specified in the package manifest for the current package.

public:
 property StorageFolder ^ UserExternalLocation { StorageFolder ^ get(); };
StorageFolder UserExternalLocation();
public StorageFolder UserExternalLocation { get; }
var storageFolder = package.userExternalLocation;
Public ReadOnly Property UserExternalLocation As StorageFolder

Property Value

StorageFolder

The location of the per-user external folder specified in the package manifest for the current package.

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

The external folder is a disk location outside of the package where the package manifest can reference application content. This property returns the location of the external folder as a StorageFolder object for an app that is installed on a per-user basis.

This property is intended to be used when you are granting identity to an unpackaged desktop application by using a sparse package. A sparse package contains only a package manifest (not an executable or other application content). The package manifest references application content in an external disk location outside of the package.

To set the external folder, use one of the following combinations of PackageManager methods and related options properties:

Applies to

See also