Custom Configuration Collection Example Needed

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I've searched long and hard to find one in VB.NET, but cannot.

I'm looking for some sample code to read a simple app.config file like
the one below. But I cannot find any that work. I found code to read
a custom configuration section that worked, but it did not have a
collection like I need. Can anyone help me?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="MySettings" type="ConsoleApplication9.MySettings"/>
</configSections>
<MySettings>
<Customers>
<Customer Name="Brian" Age="31"/>
<Customer Name="Jeremy" Age="29"/>
</Customers>
</MySettings>
</configuration>
 
Paul,

Can you show some code that you made.

The way for version 1.x is quiet different from 2.0 because the latter uses
the configuration manager.

Cor
 
Back
Top