ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::Add Method (TServiceModelExtensionElement)

 

Adds the specified element to this configuration section.

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

public:
virtual void Add(
	TServiceModelExtensionElement element
)

Parameters

element
Type: TServiceModelExtensionElement

A ServiceModelExtensionElement to be added.

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
Return to top
Show: