简体   繁体   English

从Windows应用商店访问Windows Phone文件夹

[英]Access Windows Phone folder from Windows Store app

Is it possible to access Windows Phone StorageFolder that you get access by FolderPicker after app restart? 重新启动应用程序后,是否可以访问通过FolderPicker获得访问权限的Windows Phone StorageFolder?

The problem is that Path property of StorageFolder is empty, so there is no way to get StorageFolder from Path, and I can't see any value that I could store to access (create) new StorageFolder object for the same folder. 问题在于StorageFolder的Path属性为空,因此无法从Path获取StorageFolder,并且我看不到可以存储用于访问(创建)同一文件夹的新StorageFolder对象的任何值。

经过Jon和Andrei的有用建议,下面是我发现可以使用的代码:

await StorageApplicationPermissions.FutureAccessList.GetFolderAsync(entry.Token);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM