Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am trying to find a way to take the MANY settings I have stored in the My.Settings area of VB.Net and export them to a file that I can Import again when needed.

I am using them to store customer data that is on a shared file, so ADO is out.

Thanks in advance for any help!!!!
Posted
Updated 30-Nov-11 14:45pm
v3
Comments
[no name] 30-Nov-11 20:45pm    
EDIT: Updated "code" tag

1 solution

I prefer using Data Contract. Please see:
http://msdn.microsoft.com/en-us/library/ms733127.aspx[^].

Yes, I know about Application Settings. See http://msdn.microsoft.com/en-us/library/ms973902.aspx[^].

Yes, you can use the approach described in the article referenced above.

I still thing Data Contract is more flexible and non-intrusive. It can be used with any objects graphs generated based on any arbitrary set of data classes. The graph can even be non-hierarchical. Also, the approach is universal and extremely easy to use. Another important thing is the provision for backward compatibility when the software goes through evolution.

Please see my past articles advocating Data Contract:
How can I utilize XML File streamwriter and reader in my form application?[^],
Creating property files...[^],
deseralize a json string array[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900