Custom Configuration Collection Example Needed

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>
 
C

Cor Ligthert[MVP]

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
 

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