2
Answers

Writing to App.Config in c# 2.0

Ask a question
Sea Sharp

Sea Sharp

17y
1.8k
1
Hi,

Environment = VS 2005, c# 2.0

I have a problem using the System.Configuration Namespace.I am not getting the ConfigurationManager class to use in the following code though I have imported the
System.Configuration namespace.

System.Configuration.Configuration config =ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings.Add("NewKey", "New Value");
config.Save();


Thanks




Answers (2)
Next Recommended Forum