CustomBindingElement.Add(BindingElementExtensionElement) 方法

定义

将指定元素添加到此配置节。Adds the specified element to this configuration section.

public:
 override void Add(System::ServiceModel::Configuration::BindingElementExtensionElement ^ element);
public override void Add (System.ServiceModel.Configuration.BindingElementExtensionElement element);
override this.Add : System.ServiceModel.Configuration.BindingElementExtensionElement -> unit
Public Overrides Sub Add (element As BindingElementExtensionElement)

参数

实现

例外

elementnull 或空。element is null or empty.

绑定中已存在消息编码配置元素。The message encoding configuration element already exists in the binding.

- 或 --or-

绑定中已存在流升级元素。The stream upgrade element already exists in the binding.

- 或 --or-

绑定中已存在传输元素。The transport element already exists in the binding.

适用于