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Ā®  http://www.develop.com

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

Reply via email to