System.Web.Configuration.NamespaceCollection.RemoveAt Method

Removes a System.Web.Configuration.ProfileGroupSettings object from the specified index in the collection.

Syntax

public void RemoveAt (int index)

Parameters

index
The index of a System.Web.Configuration.NamespaceInfo object to remove from the collection.

Remarks

If the specified element is defined in a higher-level configuration file, this method inserts a remove element into the appropriate section of the configuration file at the level of the current application. If the element is defined in the current configuration file, its entry is removed from the configuration file. The object to remove must exist in the collection; if it does not, a System.Configuration.ConfigurationException is thrown.

Requirements

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