ConfigurationElementCollection.BaseAdd Method

 

Adds a ConfigurationElement to an ConfigurationElementCollection instance when overridden in a derived class.

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

NameDescription
System_CAPS_protmethodBaseAdd(ConfigurationElement)

Adds a configuration element to the ConfigurationElementCollection.

System_CAPS_protmethodBaseAdd(ConfigurationElement, Boolean)

Adds a configuration element to the configuration element collection.

System_CAPS_protmethodBaseAdd(Int32, ConfigurationElement)

Adds a configuration element to the configuration element collection.

Use the BaseAdd method to add a new ConfigurationElement to the collection. Override in a derived class if custom behavior is required when the element is added.

When adding, an element is considered a duplicate only if the keys are identical but the values are different. Elements with identical keys and values are accepted silently because the elements do not compete. However, an element with an identical key but a different value cannot be added because there is no logic to determine which of the competing values should be honored.

Return to top
Show: