Board index » Visual Studio » AppSettingsReader GetValues
|
tandoggie
|
AppSettingsReader GetValues
Visual Studio26
Hi, Consider following app.config <configuration> <appSettings> <add key="Fields" value="Field1" /> <add key="Fields" value="Field2" /> <add key="Fields" value="Field3" /> </appSettings> </configuration> Is there any way to retrieve all three values for one key. Its very possible and easy in an XML Document ( infact i do it but as an app.config.xml ). So the AppSettingsReader provide ONLY ONE method GetValue and the internal XML Document isnt exposed. ReQuote: How to get multiple values on same key from an app.config file ? Something Like GetValues( key, values() ) So is there a way to do it without writing own XML document parsing code? Thanx in advance rawCoder - |
