A tutorial of how to use Microsoft CMAB, Part 2
2004-07-23 08:14
369 查看
A tutorial of how to use Microsoft CMAB, Part 2
-- Develop custom configuration section handler
The previous article, A tutorial of how to use Microsoft CMAB, shows how to use XmlHashtableSectionHandler provided by CMAB to access application’s configuration file. The Hashtable section handler provides support for configuration sections based on the standard .Net Hashtable class. It’s simple and fast to implement the required function.
This article will show you how to develop custom configuration section handler based on Microsoft Configuration Management Application Block. To create a read/write custom section handler, you must create a class that implements the IconfigurationSectionHandlerWriter interface, which is defined in the Configuration Management Application Block and extends IconfigurationSectionHandler.
For example,
public class ProxySectionHandler : IConfigurationSectionHandler,
IconfigurationSectionHandlerWriter
I've built a sample solution in C# to demonstrate it. You can download it from the following URL.http://files.cnblogs.com/rickie/CustomConfigurationSectionHandler.zip
*
In addition, you can download the full tutorial document over there because the content is too long to place here.
http://files.cnblogs.com/rickie/AtutorialofhowtouseMicrosoftCMAB-Part2.zip (PDF Document)
相关文章推荐
- A tutorial of how to use Microsoft CMAB
- [Mootools] Simple tutorial of how to use domReady, DOM operation and Ajax in Mootools
- How to use re-write module of Apache web server 2.2.3 on FC6 with new or refurbi
- How to use Reflector to see the code of .net framework
- How to customise the TWebBrowser user interface (part 2 of 6)
- how to use Zypper to do a live distribution upgrade of openSUSE.
- How To Use MOSFET – Beginner’s Tutorial(转)
- How to use Metadata as search parameter in Advance Search Web Part
- iOS 5 Storyboard: How To use Segues, Scenes and Static Content UITableViews--Part III
- iOS 后台定位审核被拒How to clarify the purpose of its use in the locatio
- NDoc: How to Make Good Use of Your XML Comments?
- how to write your annotation types and make use of built-in annotations to control their behavior
- How To Use UIView Animation Tutorial
- How to customise the TWebBrowser user interface (part 3 of 6)
- How To Use UIView Animation Tutorial
- Question 33: How can a C++ developer use the placement new syntax to make new allocate an object of class SomeClass at a particu
- How to use mouse to moving windows of not have title bar?
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- Core Data on iOS 5 Tutorial: How To Use NSFetchedResultsController
- How to access body of Custom tags in JSP tutorial