积极答复者
UWP开发 文件访问权限,大牛们帮帮忙,很急( ▼-▼ )

问题
答案
-
首先很高兴能收到您的回复,
问题的根结我已经找到了!当我把folder路径上(也就是Path属性)的某个隐藏文件夹设置为“可见”即可解决我之前所述的问题。
希望我的这点小小发现能帮助以后可能遇到跟我同样问题的人~
再次致以最诚挚的感谢!
Yours Sincerely!
- 已建议为答案 Barry Wang 2016年2月25日 2:00
- 已标记为答案 Jiong ShiMVP, Moderator 2016年3月15日 2:58
全部回复
-
你好,
运行于沙盒的UWP跟普通的程序有着完全不一样的权限,一般的桌面应用程序并没有像UWP里那样对这些文件访问进行设置。具体内容请参阅:
https://msdn.microsoft.com/zh-cn/library/windows/apps/xaml/hh758319.aspx (访问数据和文件)
就拿这个“Authenticated Users”,当你在你的程序manifest里选择一个权限以后,上传到的商店里面会相应的通知使用你程序的客户你的程序会有这样的权限要求(但是UWP里面没你所说的这个权限啊,你怎么设置的,给个截图看看?)。
所以这里的核心不在于UWP运行时以什么权限运行,而在于你需要在你的UWP程序里面用到什么权限。比如这里的folder,虽然我并不清楚你的Folder是是什么,但是我清楚如果你要访问E,D,F盘你需要用FilePicker,如果你要用GetFileAsync,那么我们就得知道你的Folder要使用的话需要用到什么权限了。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
首先很高兴能收到您的回复,
问题的根结我已经找到了!当我把folder路径上(也就是Path属性)的某个隐藏文件夹设置为“可见”即可解决我之前所述的问题。
希望我的这点小小发现能帮助以后可能遇到跟我同样问题的人~
再次致以最诚挚的感谢!
Yours Sincerely!
- 已建议为答案 Barry Wang 2016年2月25日 2:00
- 已标记为答案 Jiong ShiMVP, Moderator 2016年3月15日 2:58
-
同样,感谢你的这个答案,很有帮助的,一般也不会想到是隐藏的文件的问题。欢迎继续在论坛里面讨论相关问题:)
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
你好,
关于账户和商店的问题我可能也没什么办法。可能可以试试父母的信用卡作为绑定账户。促销代码这个可能你得问问产品相关的版主或者相关人员,我也不是很清楚这些,论坛的主要功能是讨论开发的问题。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.