共用方式為


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()

適用於