BuildProviderCollection.RemoveAt Method (Int32)

 

Removes the BuildProvider object at the specified index from the BuildProviderCollection.

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

public void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

An integer value specifying the location of a specific BuildProvider object within the BuildProviderCollection.

If the index does not specify a BuildProvider in the collection, an out-of-range exception is thrown.

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

// Remove an BuildProvider.
configSection.BuildProviders.RemoveAt(
  configSection.BuildProviders.Count - 1);

.NET Framework
Available since 2.0
Return to top
Show: