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;

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

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:

http://msdn2.microsoft.com/en-us/library/2tw134k3.aspx

Regards,

Dave

_______________________

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

Hope this helps.