I'm trying to add a new section to my app.config file under the applicationSettings section and then read it from my WinFroms VB.NET application.
My app.config would look like this:
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <system.diagnostics>
- </system.diagnostics>
- <applicationSettings>
- <Users_Settings>
- <User Name="user_1"
- server_dev="server_1" password_dev="123"
- server_test="server_2" password_dev="123" />
- <User Name="user_2"
- server_dev="server_1" password_dev="123"
- server_test="server_2" password_dev="123" />
- </Users_Settings>
- </applicationSettings>
I already prepared a class that hosts both the users name and another class that holds the various servers each user has.
What I'm missing is how to read the data from the app.config when it is located under the applicationSettings section.
Any help would be highly appreciated
BTW, I tried to Goggle this but to no avail.
Thanks