ServiceModelConfigurationElementCollection<ConfigurationElementType>.BaseAdd Method (ConfigurationElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified ConfigurationElement object to this collection.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected override void BaseAdd(
	ConfigurationElement element
)

Parameters

element
Type: System.Configuration.ConfigurationElement

The configuration element to add.

Exception Condition
ArgumentNullException

element is null or empty.

ConfigurationErrorsException

The configuration file contains an existing element identical to element.

.NET Framework
Available since 3.0
Return to top
Show: