ConfigurationPropertyCollection.Remove(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a configuration property from the collection.
public:
bool Remove(System::String ^ name);
public bool Remove (string name);
member this.Remove : string -> bool
Public Function Remove (name As String) As Boolean
Parameters
- name
- String
The ConfigurationProperty to remove.
Returns
true
if the specified ConfigurationProperty was removed; otherwise, false
.
Examples
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.
Remarks
A return value of false
indicates that the specified ConfigurationProperty object was not contained within the collection.