Windows Phone 7 的独立存储位置?
我正在使用 silverlight 4 构建 Windows Phone 7 应用程序。我将数据存储在独立存储中,如所述 此处。程序运行没有错误。我的问题是在哪里可以看到我保存的文件?是否可以在 Windows Phone 7 模拟器中找到该文件?
I'm building a windows phone 7 application using silverlight 4. I store my data in Isolated storage as outlined here. The program runs with no errors. My question is where I can see the file I have saved? Is it possible to find the file in the windows phone 7 emulator?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“Mango”SDK 附带 ISETool 可以将应用程序的独立存储快照恢复到本地目录或从本地目录恢复快照:
The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory:
经过更多谷歌搜索后,我发现 这个帖子。似乎“模拟器在关闭时不会保存其状态”。
还:
摘自这篇文章。 (http://wotudo.net/blogs/wotudo/archive/2010/03/15/mix-building-a-windows-phone-7-series-silverlight-application.aspx)
After some more googling, i found this post. It seems that "the emulator does not save its state when you close it."
Also:
from this post. (http://wotudo.net/blogs/wotudo/archive/2010/03/15/mix-building-a-windows-phone-7-series-silverlight-application.aspx)
隔离存储的目的是使其只能由在该存储中写入数据的应用程序访问。隔离存储无法跨应用程序共享,因此不允许通过类似浏览器的体验找到存储在隔离存储中的文件。
如果您需要访问文件以观察其中的数据或跨应用程序共享数据,请考虑将文件存储在云服务中。或者,如果您需要查看该文件的内容以进行调试,则可以添加一个选项以将该文件写入您的服务器上。
The intent of isolated storage is for it to be only accessible by the application that wrote the data in that store. Isolated storage can not be shared across applications, hence being able to find the files you store in isolated storage through an explorer like experience isn't allowed.
If you need to access the files to observe the data in it, or to share it across applications, consider storing the file in a cloud service. Or if you need to look at the contents of that file for debug purposes, maybe add an option to write that file on your server.
我使用这个程序来帮助我从Windows 7手机模拟器捕获数据。
I use this program to help me capture the data from the windows 7 phone emulator.