App config Files

  • Thread starter Thread starter DaveP
  • Start date Start date
D

DaveP

Hi all...
Looking for some advice
We have alot of services in vb6 and im re-writing them in c#...they all use
xml files for start up config
i want to write a class to support these files...
is the best way to build collection object from the xml files
thanks
DaveP
 
Why don't you just convert your XML "files" into the standard App.Config
schema? You can use the appSettings section for most stuff, and the
System.Configuration.ConfigurationManager class methods / properties to read
them.

Peter
 
You should look into

"Custom Handers" for app.config files.

Go here;
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/


You're not interested in the smtp/email stuff, you're interested in how I
read xml out of the app.config file, and turn it into custome object(s).


There is downloadable code.

See
// (
http://msdn.microsoft.com/library/d...uide/html/cpconcreatingnewsectionhandlers.asp )
// also see http://support.microsoft.com/default.aspx?scid=kb;en-us;309045
// Article ID : 309045

But the code I have will demo it much faster.
 

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

Similar Threads

Calling C#Dll from Vb6 7
XML config 6
updating xcml config file with treeView nodes 1
Class library and config files...again 2
run time Compiling 13
app config file 2
Merge XML Files from DataSets 3
Inherit app 1

Back
Top