NameValueConfigurationCollection.Remove Method (String)


Removes a NameValueConfigurationElement object from the collection based on the provided parameter.

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

public void Remove(
	string name


Type: System.String

The name of the NameValueConfigurationElement object.

Use the Remove method to remove a NameValueConfigurationElement from the collection. Override in a derived class if custom behavior is required when the element is removed.

.NET Framework
Available since 2.0
Return to top