Export (0) Print
Expand All

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
)

Parameters

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft