标签:
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings.Remove("Custom"); config.AppSettings.Settings.Add("Custom", txtValue.Text); config.Save(ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection("appSettings");
标签:
原文地址:http://www.cnblogs.com/oiliu/p/5458892.html