Create custom section in config file

给你一囗甜甜゛ 提交于 2019-12-06 14:59:07

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

Highly recommended, well written and extremely helpful! This will give you a thorough understanding of the .NET configuration system.

Phil Haack also has a great blog post Three easy steps to a custom configuration section that will give you a quick head-start into building your own custom config sections.

To design your own custom section, there's also a handy tool (Visual Studio add-in) called Configuration Section Designer that will make it very easy and simple to create your own custom section and have it build up all the necessary code to handle that custom section.

move this out of the config section

 <BlogSettings
    Price="10"
    title="BLACKswastik" />

You made a new config reference so it can be its own node now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!