I would recommend creating/using the custom config sections instead of using
the appSettings node.
It's not too difficult to figure out and it allows you to create those
hierarchies.
I've never been fond of Microsoft's implementation of application
configuration, but the custom configuration ones are better and more
flexible.
On Jan 21, 2008 9:13 AM, Mark Nicholls <[EMAIL PROTECTED]> wrote:

> Hello, I've done this before, but using a now depricated method (I'm in
> 2008 now)...
>
> I want to hold multiple repeated sets of configs in a config file...
>
> Now the easy 'bodge' is to go....
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>  <appSettings>
>    <add key="queue1.Address" value ="foo"/>
>    <add key="queue1.Timeout" value ="123"/>
>    <add key="queue2.Address" value ="bar"/>
>    <add key="queue2.Timeout" value ="3434"/>
>    <add key="queue3.Address" value ="william"/>
>    <add key="queue3.Timeout" value ="4500"/>
>  </appSettings>
> </configuration>
>
> and do the obvious thing in the code...crude, but simple...I've looked at
> custom configs (again) but it seems a really complex way of doing
> something simple...
>
> is there middle ground somewhere?
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to