AP&C API Reference
Public Member Functions | Static Public Member Functions | List of all members
Apac.Configuration.NameMultipleValueSectionHandler Class Reference

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...

Inheritance diagram for Apac.Configuration.NameMultipleValueSectionHandler:

Public Member Functions

object Create (object parent, object context, XmlNode section)
 Creates the specified parent. More...
 

Static Public Member Functions

static NameValueCollection GetConfig (string sectionName)
 Gets the config. More...
 

Detailed Description

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.

Member Function Documentation

◆ Create()

object Apac.Configuration.NameMultipleValueSectionHandler.Create ( object  parent,
object  context,
XmlNode  section 
)
inline

Creates the specified parent.

Parameters
parentThe parent.
contextThe context.
sectionThe section.
Returns
Returns a ReadOnlyNameValueCollection.

◆ GetConfig()

static NameValueCollection Apac.Configuration.NameMultipleValueSectionHandler.GetConfig ( string  sectionName)
inlinestatic

Gets the config.

Parameters
sectionNameName of the section.
Returns
Returns NameValueCollection.

The documentation for this class was generated from the following file: