How to create custom config section in app.config

前端 未结 3 1052
梦如初夏
梦如初夏 2021-01-14 20:35

I want to add the custom configsection in the app.config file as follows


  
  

        
相关标签:
3条回答
  • 2021-01-14 21:10

    I base all my configuration management code on the classes I collected here. This is an example, and here's some documentation. Note that this is code I personally refactored from a blog post that isn't available on-line any more.

    0 讨论(0)
  • 2021-01-14 21:29

    You should check out Jon Rista's three-part series on .NET 2.0 configuration up on CodeProject.

    • Unraveling the mysteries of .NET 2.0 configuration
    • Decoding the mysteries of .NET 2.0 configuration
    • Cracking the mysteries of .NET 2.0 configuration

    Highly recommended, well written and extremely helpful! I've learned how to deal with custom config sections from those excellent articles.

    0 讨论(0)
  • 2021-01-14 21:29

    This will help you http://msdn.microsoft.com/en-us/library/2tw134k3(v=vs.80).aspx

    0 讨论(0)
提交回复
热议问题