ServiceModelConfigurationElementCollection<ConfigurationElementType>.Add Method (ConfigurationElementType)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified configuration element to this collection.

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

public void Add(
	ConfigurationElementType element
)

Parameters

element
Type: ConfigurationElementType

The configuration element to be added.

Exception Condition
ArgumentNullException

element is null or empty.

.NET Framework
Available since 3.0
Return to top
Show: