Edit

Share via


ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove Method

Definition

Removes the first occurrence of a specific configuration element from the collection.

public:
 void Remove(ConfigurationElementType element);
public void Remove (ConfigurationElementType element);
member this.Remove : 'ConfigurationElementType -> unit
Public Sub Remove (element As ConfigurationElementType)

Parameters

element
ConfigurationElementType

The configuration element to be removed from the collection.

Exceptions

element is null.

-and-

The configuration file is read-only.

Applies to