System.Web.Configuration.CustomErrorCollection.RemoveAt Method

Removes a System.Web.Configuration.CustomError object at the specified index location from the collection.

Syntax

public void RemoveAt (int index)

Parameters

index
The collection index of the System.Web.Configuration.CustomError object to remove.

Remarks

The CustomErrorCollection.RemoveAt(int) method inserts a remove element into the customErrors section of the configuration file at the current hierarchy level. This is to remove the reference to the add element defined in the parent configuration files at higher-level in the hierarchy.

Note   The add elements are not deleted from the parent configuration files. They are merely deactivated. However, the CustomErrorCollection.RemoveAt(int) method does actually delete them at the current hierarchy level.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0