ServiceModelConfigurationElementCollection<ConfigurationElementType>.BaseAdd(ConfigurationElement) 方法

定义

将指定的 ConfigurationElement 对象添加到此集合。Adds the specified ConfigurationElement object to this collection.

protected:
 override void BaseAdd(System::Configuration::ConfigurationElement ^ element);
protected override void BaseAdd (System.Configuration.ConfigurationElement element);
override this.BaseAdd : System.Configuration.ConfigurationElement -> unit
Protected Overrides Sub BaseAdd (element As ConfigurationElement)

参数

element
ConfigurationElement

要添加的配置元素。The configuration element to add.

例外

elementnull 或空。element is null or empty.

配置文件包含的某个现有元素与 element 相同。The configuration file contains an existing element identical to element.

适用于