摘要:
查了很多文章都介绍用下面的方法修改app.config中的值:Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);config.AppSettings.Settings["DB_UID"].Value = "demo";config.Save(ConfigurationSaveMode.Full);事实证明这种做法是不可行的。虽然程序运行时的值已经被修改。但是打开app.config查看,会看到值仍然没有被改动。如果重启 阅读全文
posted @ 2012-12-03 15:23 且行且思 阅读(5466) 评论(1) 推荐(0) 编辑