How to Load Config File Programmatically

前端 未结 4 1632
[愿得一人]
[愿得一人] 2020-12-01 06:42

Suppose I have a Custom Config File which corresponds to a Custom-defined ConfigurationSection and Config elements. These config classes are stored in a library.

C

4条回答
  •  孤街浪徒
    2020-12-01 07:32

    The configSource attribute allows you to move any configuration element into a seperate file. In your main app.config you would do something like this:

    
      
        
      
    
      
                                                            
提交回复
热议问题