[UWP] [C#]使用StorageFolder.Path进行不一致的大写行为 [英] [UWP][C#]Inconsistent capitalisation behaviour with StorageFolder.Path

查看:91
本文介绍了[UWP] [C#]使用StorageFolder.Path进行不一致的大写行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自最近的Windows更新以来,我发现了我发布的UWP应用程序中的错误。

当我通过FolderPicker类选择文件夹时,路径的路径如下所示:C:\ Data\Users\Public \Pictures
Since recent Windows Updates I notice bugs in my published UWP App.
When I select a folder via the FolderPicker class the path of the path looks like this: C:\Data\Users\Public\Pictures

推荐答案

您好AensoRM,

Hi AensoRM,

欢迎来到
开发通用Windows应用论坛
!请使用  标记 
发布到这个论坛时,谢谢!

我不建议你使用路径获取文件夹,它不会工作在大多数情况下你想要的。您无法使用"C:\\Data \\Users \\Public \\ Picts"访问文件夹。路径,请参阅博客  跳过
路径:坚持使用StorageFile
以了解有关uwp应用中路径的更多信息并参考

文件访问权限
,以了解uwp应用程序可以访问的文件。

I don't recommend you get a folder using the path, it will not work as your want in most cases. You can not access a folder using "C:\\Data\\Users\\Public\\Pictures" path, see the blog Skip the path: stick to the StorageFile to learn more about the path in uwp apps and reference the File access permissions to learn the file a uwp app can access.

祝你好运,

Breeze


这篇关于[UWP] [C#]使用StorageFolder.Path进行不一致的大写行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆