Removes all configuration element objects from the collection.
Protected Friend Sub BaseClear
Me.BaseClear()
protected internal void BaseClear()
protected public: void BaseClear()
protected internal function BaseClear()
The configuration is read-only.
- or -
A collection item has been locked in a higher-level configuration.
When the BaseClear method is called, it removes all ConfigurationElement objects from the collection. It also inserts a clear directive into the configuration file.
The following code example shows how to call the BaseClear method.
Public Sub Clear() BaseClear() End Sub 'Clear '
public void Clear() { BaseClear(); // Add custom code here. }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98