ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::Add Method (TServiceModelExtensionElement)
.NET Framework (current version)
Adds the specified element to this configuration section.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- element
-
Type:
TServiceModelExtensionElement
A ServiceModelExtensionElement to be added.
Implements
ICollection<T>::Add(T)| Exception | Condition |
|---|---|
| ArgumentNullException | element is null. |
| ConfigurationErrorsException | The configuration file is read-only. |
| ArgumentException | element already exists in the collection. -or- The element type specified by element is not permitted. |
.NET Framework
Available since 3.0
Available since 3.0
Show: