.net dynamically refresh app.config

前端 未结 10 799
闹比i
闹比i 2020-12-02 23:28

How do I dynamically reload the app.config in a .net Windows application? I need to turn logging on and off dynamically and not just based upon the value at application sta

10条回答
  •  囚心锁ツ
    2020-12-02 23:57

    Actually using an:

    Application.restart();

    Has worked pretty good for me.

    Regards

    Jorge

提交回复
热议问题