ConfigurationPropertyCollection::Remove Method (String^)

 

Removes a configuration property from the collection.

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

public:
bool Remove(
	String^ name
)

Parameters

name
Type: System::String^

The ConfigurationProperty to remove.

Return Value

Type: System::Boolean

true if the specified ConfigurationProperty was removed; otherwise, false.

A return value of false indicates that the specified ConfigurationProperty object was not contained within the collection.

The following example shows how to use the Remove method.

The following example shows how to call the above method and save the changes to the configuration file.

.NET Framework
Available since 2.0
Return to top
Show: