BindingContext.RemainingBindingElements 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取其他绑定元素用于构造通道堆栈的绑定元素。
public:
property System::ServiceModel::Channels::BindingElementCollection ^ RemainingBindingElements { System::ServiceModel::Channels::BindingElementCollection ^ get(); };
public System.ServiceModel.Channels.BindingElementCollection RemainingBindingElements { get; }
member this.RemainingBindingElements : System.ServiceModel.Channels.BindingElementCollection
Public ReadOnly Property RemainingBindingElements As BindingElementCollection
属性值
BindingElementCollection,包含其他绑定元素用于构造通道堆栈的绑定元素。
示例
CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
BindingElementCollection bindingElements = context.RemainingBindingElements;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim bindingElements As BindingElementCollection = context.RemainingBindingElements
注解
放入此集合的绑定元素,是不与任何通道堆栈中的侦听器或工厂直接对应的元素。 例如,编码器绑定元素最终进入此集合,然后由传输通道用于构造消息编码器。