Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

custom config settings

Posted on 2003-03-04
2
Medium Priority
?
177 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

580 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