Package.EffectiveLocation Property

Definition

Gets either the location of the installed folder or the mutable folder for the installed package, depending on whether the app is declared to be mutable in its package manifest.

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 location of the installed folder or the mutable folder for the installed package, depending on whether the app is declared to be mutable in its package manifest.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

If the app is declared to be mutable by including the windows.mutablePackageDirectories extension in its package manifest, this property gets 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). If the app is not declared to be mutable, this property gets 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 our partners, and it enables these types of games to support mods.

Applies to

See also