1配置文件操作方法  Configuration windowsConfig = ConfigurationManager.OpenExeConfiguration(Path.Combine(Application.StartupPath, "WindowsFormsHost.exe"));
 2配置文件操作方法
 3配置文件操作方法            windowsConfig.AppSettings.Settings["ConnectionString"].Value = desCheck.Checked ? DESEncrypt.Encrypt(connText.Text) : connText.Text ;
 4配置文件操作方法            windowsConfig.AppSettings.Settings["ConStringEncrypt"].Value = desCheck.Checked.ToString();
 5配置文件操作方法           
 6配置文件操作方法            windowsConfig.Save();
 7配置文件操作方法
 8配置文件操作方法            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
 9配置文件操作方法
10配置文件操作方法            config.AppSettings.Settings["ConnectionString"].Value = desCheck.Checked ? DESEncrypt.Encrypt(connText.Text) : connText.Text;
11配置文件操作方法            config.AppSettings.Settings["ConStringEncrypt"].Value = desCheck.Checked.ToString();
12配置文件操作方法
13配置文件操作方法            config.Save();
14配置文件操作方法

相关文章:

  • 2021-06-05
  • 2021-12-20
  • 2022-01-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-12-06
  • 2021-11-10
  • 2023-01-19
  • 2022-12-23
相关资源
相似解决方案