IConfigurationSource.Add Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Adds a ConfigurationSection to the configuration source location specified by saveParameter and saves the configuration source.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
SubAdd ( _
    saveParameterAs IConfigurationParameter, _
    sectionNameAs String, _
    configurationSectionAs ConfigurationSection _
)
voidAdd(
    IConfigurationParameter saveParameter,
    string sectionName,
    ConfigurationSection configurationSection
)
voidAdd(
    IConfigurationParameter^ saveParameter, 
    String^ sectionName, 
    ConfigurationSection^ configurationSection
)
functionAdd(
    saveParameter : IConfigurationParameter, 
    sectionName : String, 
    configurationSection : ConfigurationSection
)

Parameters

  • sectionName
    Type: System.String
    The name by which the configurationSection should be added.

Remarks

If a configuration section with the specified name already exists in the location specified by saveParameter it will be replaced.

See Also

IConfigurationSource Interface

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.