ServiceModelConfigurationElementCollection<ConfigurationElementType>.Remove(ConfigurationElementType) 方法

定义

从集合中移除特定配置元素的第一个匹配项。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)

参数

element
ConfigurationElementType

要从集合中移除的配置元素。The configuration element to be removed from the collection.

例外

elementnullelement is null.

-和--and- 配置文件是只读的。The configuration file is read-only.

适用于