How to read configuration section for sub-classes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can ConfigurationSection or ConfigurationElement retrieve the configuration
information in a generic way such as string or XmlNode type?
I have sub-sections in the configuration which is specific for sub-class to
initialize itself and needs to be passed to it in a generic way defined in
base class.
 
Not through the configuration interfaces, but you can certainly load
web.config into an XML document and then parse the sections directly
(assuming you have read access to web.config)

+++ Rick ---
 
Back
Top