ConfigurationManager - writing to App.config
-
Anyone care to help me get going? Being new to configuration files I'm a bit lost. Searching didn't lead me far, didn't find a clear example. MSDN example was brutally long.
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.Save();
What is needed to create a section, and put a key / value into that section? Thanks for your help. (Have already added reference, using, and config file)
-
Anyone care to help me get going? Being new to configuration files I'm a bit lost. Searching didn't lead me far, didn't find a clear example. MSDN example was brutally long.
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.Save();
What is needed to create a section, and put a key / value into that section? Thanks for your help. (Have already added reference, using, and config file)
-
Please go to Articles and look for Custom Configuration Sections in .Net 2.0 from Luis Angel R.C. is written in VB but it's translation is very easy, and very complete and clear , only has a problem for saving at the end. Regards