Share via


AppExtension.GetPublicFolder Method

Definition

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.

Applies to

See also