Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //app.config
- var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- //web.config
- //var config = WebConfigurationManager.OpenWebConfiguration("~");
- var section = (NameValueConfigurationCollection) config.GetSection("thirdPartySection");
- section["someKey"].Value = "someValue";
- //check file permissions!!
- config.Save();
Advertisement
Add Comment
Please, Sign In to add comment