Edit

Kongsi melalui


ConfigurationPropertyCollection.Remove(String) Method

Definition

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.

Applies to

See also