analyse <configSections> section in app.exe.config

  • Thread starter nojo\(k\)e via DotNetMonster.com
  • 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
 
K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top