DriveInfo equivalent in WinRT/Metro App

徘徊边缘 提交于 2019-12-12 19:12:35

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/8462237/driveinfo-equivalent-in-winrt-metro-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!