TransformerInfoCollection.RemoveAt Method (Int32)

 

Removes the TransformerInfo object from the collection at the passed index.

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

public void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

The index of a TransformerInfo object to remove from the collection.

This method removes a TransformerInfo object from the collection and, if the TransformerInfo object is defined in a higher-level configuration file, inserts a remove element into the transformers collection of the webParts section of the configuration file.

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

// Remove a TransformerInfo object by index.
webPartsSection.Transformers.RemoveAt(0);

.NET Framework
Available since 2.0
Return to top
Show: