ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Clear Method ()

 
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.

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
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: