ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::Clear Method ()

 

Deletes all elements in this collection. This method cannot be inherited.

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

public:
virtual void Clear() sealed

Exception Condition
ConfigurationErrorsException

The configuration file is read-only.

This method empties the collection and resets its Count property to 0.

.NET Framework
Available since 3.0
Return to top
Show: