ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove(ConfigurationElementType) ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove(ConfigurationElementType) ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove(ConfigurationElementType) ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove(ConfigurationElementType) 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 ConfigurationElementType ConfigurationElementType ConfigurationElementType

The configuration element to be removed from the collection.

Exceptions

element is null.

-and-

The configuration file is read-only.

Applies to