C#.NET应用程序设置和升级 [英] C# .NET Application Settings and Upgrading

查看:134
本文介绍了C#.NET应用程序设置和升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Settings.Default.MySettingName和放大器; Settings.Default.Save保存和载入设置。当我改变我的版本号,我怎么能够从旧版本获得的设置,适用于他们我的新版本?我只是不太明白。

I use Settings.Default.MySettingName & Settings.Default.Save to save and load settings. When I change my version number how am I able to get the settings from the old version and apply to them my new version? I just can't quite figure it out.

推荐答案

Settings.Upgrade()看起来有一些希望 - 看看<一href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/30b6314e-2e4f-4ff3-871c-ad58206b512d">this帖子 - 并注意此方法应该由你的应用程序调用一次且仅一次

Settings.Upgrade() looks like it has some promise - check out this post - and note that this method should be called once-and-only-once by your application.

这篇关于C#.NET应用程序设置和升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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