Save and reload app.config(applicationSettings) at runtime

前端 未结 4 497
攒了一身酷
攒了一身酷 2020-12-01 16:57

I\'ve stored configuration of my application in the app.config, by Visual Studio I\'ve created some application key on the settings tab of project properties dialog, then I\

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 17:11

    You need to make a call to ConfigurationManager.RefreshSection in order to have the values re-read from disk.

提交回复
热议问题