analyse <configSections> section in app.exe.config

  • Thread starter Thread starter nojo\(k\)e via DotNetMonster.com
  • Start date Start date
N

nojo\(k\)e via DotNetMonster.com

Hi,

is there a class in .NET to read sections (maybe groups as well) defined in
the <configsections> itself ?
One way is to open the file with XMLReader, but there ought to be a more
simple one?

I need to store configuration data for a variable count of serial ports
accessed by my program, so the idea is something like
<configSections>
<section name="port1" type="System.Configuration.
NameValueSectionHandler" />
<section name="port2" type="System.Configuration.
NameValueSectionHandler" />
..... maybe more section definitions .....
</configSections>

<port1>
....
</port1>
<port2>
....
</port2>
...... maybe more sections....

Thanks in advance,

nojo(k)e
 
Which version of .Net are you asking about?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
Back
Top