Removes a System.Web.Configuration.CustomError object at the specified index location from the collection.
- index
The collection index of the System.Web.Configuration.CustomError object to remove.
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.