WSHttpBinding.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

返品

BindingElementCollection バインドによって記述されたバインド要素の順序付けられたスタックを含むWSHttpBinding

例外

トランスポート セキュリティ モード セットは、有効になっている信頼できるセッションを提供できません。

次の例では、バインドによって記述されたバインド要素の順序付けられたスタックを含むBindingElementCollectionWSHttpBinding取得する方法を示します。

WSHttpBinding wsHttpBinding = new WSHttpBinding();
BindingElementCollection beCollection = wsHttpBinding.CreateBindingElements();
Dim wsHttpBinding As New WSHttpBinding()
Dim beCollection As BindingElementCollection = wsHttpBinding.CreateBindingElements()

注釈

バインド要素の順序は重要です。 プロトコルとトランスポート チャネルが構築され、スタックされる順序が反映されます。

適用対象