ServiceModelConfigurationElementCollection<ConfigurationElementType>::BaseAdd Method (ConfigurationElement^)

 

Adds the specified ConfigurationElement object to this collection.

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

protected:
virtual void BaseAdd(
	ConfigurationElement^ element
) override

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: