TransformerInfoCollection.Clear Method ()

 

Removes all TransformerInfo objects from the collection.

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

public void Clear()

This method removes all TransformerInfo objects from the collection and inserts a clear element into the transformers collection of the webParts section of the configuration file.

The following code example shows how to use the Clear method. This code example is part of a larger example provided for the WebPartsSection class.

// Clear all TransformerInfo objects from the collection.
webPartsSection.Transformers.Clear();

.NET Framework
Available since 2.0
Return to top
Show: