Path, FileInfo, etc. in PCL (Profile 158)

只谈情不闲聊 提交于 2019-12-25 02:31:50

问题


I can concatenate files and paths, but how do I check for file existing using PCL (Profile 158). Is it possible?


回答1:


Platforms such as Windows Store and Silverlight don't support those APIs. Those platforms have APIs such as Windows.Storage and IsolatedStorage which allow access to storage. You can use my PCL Storage library or something similar to access those different APIs in a portable fashion.



来源:https://stackoverflow.com/questions/20555484/path-fileinfo-etc-in-pcl-profile-158

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