首页 > 代码库 > .net读写config appsetting

.net读写config appsetting

    this.txtOutPutPath.Text = ConfigurationManager.AppSettings["OutPutPath"];            this.txtFilter.Text = ConfigurationManager.AppSettings["Filter"];

    Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);                configuration.AppSettings.Settings["OutPutPath"].Value = http://www.mamicode.com/this.txtOutPutPath.Text;                configuration.AppSettings.Settings["Filter"].Value = http://www.mamicode.com/this.txtFilter.Text;                //保存配置文件                configuration.Save();                ConfigurationManager.RefreshSection("appSettings"); // 实时刷新

 

.net读写config appsetting