ConfigurationPropertyCollection.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.

Removes all configuration property objects from the collection.

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

public void Clear()

The following example shows how to use the Clear method.

The following example shows how to call the above method and save the changes to the configuration file.

.NET Framework
Available since 2.0
Return to top
Show: