当用户安装更新时,应用程序使用的数据是否会被删除? [英] Does data used by an app get deleted when a user installs an update?

查看:49
本文介绍了当用户安装更新时,应用程序使用的数据是否会被删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户在 Windows Phone 7 中安装您的应用更新后,独立存储中的数据是否仍然存在?

Is data in isolated storage remain after user installs an update to your app in windows phone 7?

更新后是否还保留了IsolatedStorageSettings?

Also are IsolatedStorageSettings preserved after an update?

推荐答案

不,只有在用户卸载应用程序时,IsolatedStorage 才会被擦除.升级它会保持以前的数据完好无损.显然,如果您的应用的新版本希望数据采用不同的格式,则您必须自己在代码中处理转换.

No, IsolatedStorage is only wiped if the user uninstalls the app. Upgrading it leaves previous data intact. Obviously, if the new version of your app wants the data to be in a different format, you'll have to handle the conversion yourself in code.

请注意,作为开发人员,在 Visual Studio 中选择 Rebuild All 或 Clean Build -> Build 会导致在下次部署时从您的设备(和模拟器)卸载并重新安装旁加载的应用程序.这将导致IsolatedStorage 被擦除.但是,增量构建不会影响 IndependentStorage.

Note that as a developer, choosing Rebuild All, or Clean Build -> Build in Visual Studio causes the sideloaded app to be uninstalled and reinstalled from your device (and emulator) the next time it is deployed. This will result in IsolatedStorage being wiped. However, an incremental build does not affect IsolatedStorage.

这篇关于当用户安装更新时,应用程序使用的数据是否会被删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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