.NET Brain Droppings

I'm a Microsoft Certified Architect (MCA)... Feel free to ask me about the program...

Taking Custom Configuration Sections A Step Further

 Yup, it's cool, but it gets even cooler when you start writing your own configuration section handler implementations. The beauty of the configuration architecture is that it's completely extensible. To hook into the deserialization process all you need to do is implement a custom IConfigurationSectionHandler. The first time someone requests your named section via ConfigSettings::GetConfig, your implementation of IConfigurationSectionHandler::Create will be called and handed an XmlNode which you can then parse and turn into your own typed configuration object. This just opens infinite possibilities and builds upon the power of XML when it comes to embedding documents.

[From Drew's Blog]

Thanks Drew.  I kinda figured I'd only scratched the surface with this stuff.  Thanks, I'm gonna check out IConfigurationSectionHandler stuff.

[Currently Playing: Rancid - Life Won't Wait]

Comments

TrackBack said:

Taking Custom Configuration Sections A Step Further : .NET Blog - Chris Frazier Style
# March 12, 2003 9:39 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)