更新期间独立存储存储的对象会发生什么情况
如果我将一些序列化对象存储在独立存储中,然后两个月后为我的应用程序创建更新。更新过程中隔离存储是否会被删除?
If I store some serialized objects in isolated storage and then two months down the line create an update for my app. Does the isolated storage get removed during the update procedure?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要更新是通过 Marketplace 完成的,存储在独立存储中的数据就与更新后的状态完全相同。如果应用程序是“旁加载”的或由 Visual Studio/Expression Blend 部署,那么它将卸载/重新安装而不是升级,因此您将丢失独立存储中的内容。如果您不在 Visual Studio 中执行“全部重建”,那么它将保留独立存储并有效地执行升级。
Data stored in isolated storage remains exactly as it was after you update as long as the update is done via the Marketplace. If the app is "sideloaded" or deployed by Visual Studio/Expression Blend then it will uninstall/reinstall not upgrade so you'll loose what's in isolated storage. If you don't do a Rebuild All in Visual Studio, then it will leave isolated storage alone and effectively perform an upgrade.