ConfigurationManager.AppSettings use another config file

前端 未结 3 450
既然无缘
既然无缘 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 21:03

    You can also set the app.config to read another file. Something like this:

    
    
      
    
    

    and the external.config will have the appSettings section:

    
        
    
    

    refer to this msdn for additional info.

提交回复
热议问题