AppExtension.GetPublicFolder Method
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 subfolder provided by the PublicFolder attribute in the app extension for sharing files between the extension and the host.
public:
virtual StorageFolder ^ GetPublicFolder() = GetPublicFolder;
StorageFolder GetPublicFolder();
public StorageFolder GetPublicFolder();
function getPublicFolder()
Public Function GetPublicFolder () As StorageFolder
Returns
The public sub-folder.
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 11, version 24H2 (introduced in 10.0.26100.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v19.0)
|
Remarks
Extensions must create this folder by populating it with files as part of their package definition. It is read-only to both the extension and its host.