Hacks a work-around into the configuration section handler for appSettings (and similar) to allow adding more than one entry with the same key and retrieving all settings with the same key name (embedding lists in the appSettings section). Adapted from http://www.codeproject.com/KB/dotnet/namevaluemultiple.aspx.
More...
|
object | Create (object parent, object context, XmlNode section) |
| Creates the specified parent. More...
|
|
|
static NameValueCollection | GetConfig (string sectionName) |
| Gets the config. More...
|
|
Hacks a work-around into the configuration section handler for appSettings (and similar) to allow adding more than one entry with the same key and retrieving all settings with the same key name (embedding lists in the appSettings section). Adapted from http://www.codeproject.com/KB/dotnet/namevaluemultiple.aspx.
◆ Create()
object Apac.Configuration.NameMultipleValueSectionHandler.Create |
( |
object |
parent, |
|
|
object |
context, |
|
|
XmlNode |
section |
|
) |
| |
|
inline |
Creates the specified parent.
- Parameters
-
parent | The parent. |
context | The context. |
section | The section. |
- Returns
- Returns a ReadOnlyNameValueCollection.
◆ GetConfig()
static NameValueCollection Apac.Configuration.NameMultipleValueSectionHandler.GetConfig |
( |
string |
sectionName | ) |
|
|
inlinestatic |
Gets the config.
- Parameters
-
sectionName | Name of the section. |
- Returns
- Returns NameValueCollection.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/APACCore/Configuration/NameMultipleValueSectionHandler.cs