ConfigurationManager.AppSettings use another config file

前端 未结 3 453
既然无缘
既然无缘 2020-12-16 20:22

I have about 10 methods in my class. In every method I use ConfigurationManager.AppSettings to get value form App.config file

like

 _a         


        
3条回答
  •  太阳男子
    2020-12-16 20:50

    You can accomplish this by using ConfigurationManager.OpenExeConfiguration. This will allow you to open another configuration file easily.

    MSDN article about OpenExeConfiguration.

提交回复
热议问题