Udostępnij za pośrednictwem


ApplicationData.SharedLocalFolder Property

Definition

Gets the root folder in the shared app data store.

public:
 property StorageFolder ^ SharedLocalFolder { StorageFolder ^ get(); };
StorageFolder SharedLocalFolder();
public StorageFolder SharedLocalFolder { get; }
var storageFolder = applicationData.sharedLocalFolder;
Public ReadOnly Property SharedLocalFolder As StorageFolder

Property Value

The file system folder that contains files.

Remarks

Accessing SharedLocalFolder

SharedLocalFolder is only available if the device has the appropriate group policy. If the group policy is not enabled, the device administrator must enable it. From Local Group Policy Editor, navigate to Computer Configuration\Administrative Templates\Windows Components\App Package Deployment, then change the setting "Allow a Windows app to share application data between users" to "Enabled."

After the group policy is enabled, SharedLocalFolder can be accessed.

Applies to