CustomBindingCollectionElement 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示一组配置元素,这些元素为用户提供对消息堆栈的 customBinding 完全控制。 此类不能被继承。
public ref class CustomBindingCollectionElement sealed : System::ServiceModel::Configuration::BindingCollectionElement
public sealed class CustomBindingCollectionElement : System.ServiceModel.Configuration.BindingCollectionElement
type CustomBindingCollectionElement = class
inherit BindingCollectionElement
Public NotInheritable Class CustomBindingCollectionElement
Inherits BindingCollectionElement
- 继承
注解
自定义绑定提供对 Windows Communication Foundation (WCF) 消息传送堆栈的完全控制。 单个绑定通过指定堆栈元素的配置元素以堆栈上显示的顺序来定义消息堆栈。 每个元素定义并配置堆栈的一个元素。 每个自定义绑定中必须有一个且只有一个传输元素。 如果没有此元素,消息传送堆栈不完整。
元素出现在堆栈中的顺序很重要,因为它是将作应用于消息的顺序。 建议的堆栈元素顺序如下:
事务(可选)
Reliable Messaging (可选)
安全性(可选)
Transport
编码器(可选)
构造函数
| 名称 | 说明 |
|---|---|
| CustomBindingCollectionElement() |
初始化 CustomBindingCollectionElement 类的新实例。 |