Package.EffectiveLocation 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 effective location for the installed package, depending on how the app is declared in its package manifest. For details, see Remarks.
public:
property StorageFolder ^ EffectiveLocation { StorageFolder ^ get(); };
StorageFolder EffectiveLocation();
public StorageFolder EffectiveLocation { get; }
var storageFolder = package.effectiveLocation;
Public ReadOnly Property EffectiveLocation As StorageFolder
Property Value
The effective location for the installed package, depending on how the app is declared in its package manifest. For details, see Remarks.
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Remarks
If the package has a User-External location, then get that folder. Otherwise, if the package has a Machine-External location, then get that folder. Otherwise, if the package has a Mutable location, then get the Mutable folder for the installed package (that is, the folder under C:\Program Files\ModifiableWindowsApps where users can add files that modify the app). Also see Create a directory in any location based on packaged app directory. Otherwise, get the same value as the InstalledLocation property. The mutable folder feature is currently available only for certain types of desktop PC games that are published by Microsoft and partners, and it enables those types of games to support modifications (mods).