摘要:
以下内容转自,感谢博主的辛勤劳动http://wangfeng5271.blog.163.com/blog/static/48174444201110299345613/读取:string str= ConfigurationManager.AppSettings["key"];写入:Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);configuration.AppSettings.Settings[key].Value 阅读全文