C# .NET Application Settings and Upgrading

半世苍凉 提交于 2020-01-12 06:59:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/3429558/c-sharp-net-application-settings-and-upgrading

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!