DriveInfo当量的WinRT /城域应用 [英] DriveInfo equivalent in WinRT/Metro App

查看:122
本文介绍了DriveInfo当量的WinRT /城域应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要扫描在Metro应用程序的所有本地驱动器(和目录)是我的工作。我到处找我可以,但没有成功。基本上,我需要类似的东西是什么显示在这里举例: http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx

I need to scan all the local drives (and the directories) in a Metro App that I'm working on. I've searched everywhere I could, but without any success. Basically, I need something similar to what is shown as an example here: http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx

推荐答案

记住地铁样式应用在操作系统中他们可以访问的部分受到严格限制。我不相信这是可能的Metro风格应用程序来扫描用户硬盘上的任意位置。您可以请求权限来访问用户的照片,视频和文件,但外面,你的选择是有限的。

Remember that metro style applications are severely restricted in the parts of the operating system they can access. I don't believe that it is possible for a metro style app to scan arbitrary locations on the users hard disk. You can request permissions to access the users photos, videos and documents, but outside that, your options are limited.

这篇关于DriveInfo当量的WinRT /城域应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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