Export (0) Print
Expand All

ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Add Method

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.

Implements

ICollection<T>.Add(T)

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft