Package.UserExternalPath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the path of the per-user external folder specified in the package manifest for the current package.
public:
property Platform::String ^ UserExternalPath { Platform::String ^ get(); };
winrt::hstring UserExternalPath();
public string UserExternalPath { get; }
var string = package.userExternalPath;
Public ReadOnly Property UserExternalPath As String
Property Value
The path 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 path of the external folder for an app that is installed on a per-user basis.
This property is intended to be used when you are granting package identity by packaging with external location. A package with external location 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:
- AddPackageByUriAsync: Set the ExternalLocationUri property of the options parameter.
- RegisterPackageByUriAsync: Set the ExternalLocationUri property of the options parameter.
- StagePackageByUriAsync: Set the ExternalLocationUri property of the options parameter.