ConfigurationManager.AppSettings - How to modify and save?

后端 未结 9 1524
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 05:10

It might sound too trival to ask and I do the same thing as suggested in articles, yet it doesn\'t work as expected. Hope someone can point me to the right direction.

<
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 06:15

    Try adding this after your save call.

    ConfigurationManager.RefreshSection( "appSettings" );
    

提交回复
热议问题