ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Clear Method ()


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

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

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

public void Clear()

Exception Condition

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