reading custom configuration block using System.ConfigurationManager

Topics: Enterprise Library Core, General discussion
Apr 3, 2007 at 6:13 PM
Hi folks:

Can someone point me to the right direction about how to go about reading complex configuration blocks containing nested collections using ConfigurationManager and utlizing the classes in Microsoft.Practices.EnterpriseLibrary.Common.Configuration;

<CustomObject name="object A">
<add name="Add Item X"></add>
<add name="Add Item Y"></add>
<CustomObject Object name="object B">
<add name="Add Item A"></add>

Thanks in advance
Apr 5, 2007 at 3:34 AM
That is out of the scope of these forums. I would do a search on creating custom configuration sections.

Here is a starting point on MSDN:




David Hayden
Microsoft MVP C#
Apr 5, 2007 at 8:12 PM
Another good resource is Brian Button's Animal Application Block.

Hope this helps.