ServiceModelConfigurationElementCollection<ConfigurationElementType>::Remove Method (ConfigurationElementType)

 

Removes the first occurrence of a specific configuration element from the collection.

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

public:
void Remove(
	ConfigurationElementType element
)

Parameters

element
Type: ConfigurationElementType

The configuration element to be removed from the collection.

Exception Condition
ArgumentNullException

element is null.

-and-

The configuration file is read-only.

.NET Framework
Available since 3.0
Return to top
Show: