在 WP7 Mango 中访问独立存储之外的文件 [英] Accessing files outside of Isolated Storage in WP7 Mango

查看:25
本文介绍了在 WP7 Mango 中访问独立存储之外的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WP7 Silverlight 应用程序是否可以访问其独立存储之外的文件?我知道一个应用程序无法访问另一个应用程序的隔离存储,但是否可以访问共享文件?

Is it possible for a WP7 Silverlight application to access files outside of it's isolated storage? I know an application can't access another application's isolated storage but would it be possible to access shared files ?

推荐答案

据我所知,您只能访问隔离存储中的文件.调用 File.Open() 等方法会导致 MethodAccessException.

As far as I know you can only access files from isolated storage. Calling methods like File.Open() results in a MethodAccessException.

如果您想通过应用程序边界共享文件,一个简单的解决方案是将它们存储在远程位置(在云中或常规网络服务器上),并让您的应用程序使用这些文件.

If you want to share files over application boundries a simple solution would be to store them on a remote location (in the cloud or on a regular webserver) and let your application work with these files.

这篇关于在 WP7 Mango 中访问独立存储之外的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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