?
Solved

custom config settings

Posted on 2003-03-04
2
Medium Priority
?
173 Views
Last Modified: 2010-04-15

I have some custom config setting in my app.config file:

<myItems>
      <add key="1" value="this" />
      <add key="2" value="that" />
      <add key="3" value="the" />
      <add key="4" value="other" />
      <add key="5" value="thing" />
  </myItems>

I can get the names if I use this below, but how do I get the values??

foreach(String aKey in ((System.Collections.Specialized.NameValueCollection) ConfigurationSettings.GetConfig("myItems")).Keys)
                    {
                         Console.WriteLine(aKey + "=");
                    }

thanks!!
0
Comment
Question by:animated405
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
WiB earned 150 total points
ID: 8068106
0
 

Author Comment

by:animated405
ID: 8068737
thanks, that wasn't exactly what I wound up needing but reading more about it helped me understand better so I'm accapting this answer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question