![]() Private void button2_Click( object sender, EventArgs e) Private void button1_Click( object sender, EventArgs e) ![]() config =ĬonfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None) Ĭ( "Setting3", "3") Ĭonfig.Save(ConfigurationSaveMode.Modified, true) ĬonfigurationManager.RefreshSection( "appSettings") MessageBox.Show(String.Format( "Key: ", key, value)) String value = ConfigurationManager.AppSettings For read access you do not need to call the OpenExeConfiguraton foreach ( string key in ConfigurationManager.AppSettings)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |