WSDualHttpBinding.CreateBindingElements 方法

定义

返回一个包含在当前绑定中的已排序的绑定元素集合。

public:
 override System::ServiceModel::Channels::BindingElementCollection ^ CreateBindingElements();
public override System.ServiceModel.Channels.BindingElementCollection CreateBindingElements ();
override this.CreateBindingElements : unit -> System.ServiceModel.Channels.BindingElementCollection
Public Overrides Function CreateBindingElements () As BindingElementCollection

返回

一个包含 BindingElementCollectionTransactionFlowBindingElement(由于 WSDualHttpBinding 要求可靠对话)的 ReliableSessionBindingElement

示例

下面的示例演示如何获取一个包含在当前绑定中的绑定元素的有序集合。

BindingElementCollection bec = binding.CreateBindingElements();
Dim bec As BindingElementCollection = binding.CreateBindingElements()

适用于