Package.EffectivePath 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 either the path 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 Platform::String ^ EffectivePath { Platform::String ^ get(); };
winrt::hstring EffectivePath();
public string EffectivePath { get; }
var string = package.effectivePath;
Public ReadOnly Property EffectivePath As String
Property Value
The path 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 2004 (introduced in 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v10.0)
|
Remarks
If the app is declared to be mutable by including the windows.mutablePackageDirectories extension in its package manifest, this property gets the path of 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 InstalledPath 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.