BlobConfigurationSource.Add Method

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

Adds a ConfigurationSection to the configuration and saves the configuration source.

Namespace: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Configuration (in Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Configuration.dll) Version: 5.0.1118.0 (5.0.1118.0)

Syntax

public void Add(
    string sectionName,
    ConfigurationSection configurationSection
)
'Declaration
Public Sub Add ( _
    sectionName As String, _
    configurationSection As ConfigurationSection _
)
public:
virtual void Add(
    String^ sectionName, 
    ConfigurationSection^ configurationSection
) sealed

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 it will be replaced. If a configuration section was retrieved from an instance of FileBasedConfigurationSource, a InvalidOperationException will be thrown.

Exceptions

Exception Condition
System.InvalidOperationException The configuration section was retrieved from an instance of FileBasedConfigurationSource or Configuration and cannot be added to the current source.

See Also

BlobConfigurationSource Class

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Configuration Namespace