Share via


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

戻り値

バインドを構成する ICollection<T> 型の BindingElement

注釈

バインド要素のスタックは、WSFederationHttpSecurityMode セットの値に依存します。

WSFederationHttpBindingWSHttpBinding の既定値に設定されている場合、Security 内のバインド要素のスタックは、Message に格納されているバインド要素のスタックと同じです。

  1. TransactionFlowBindingElement

  2. SymmetricSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpTransportBindingElement

ただし、WSFederationHttpSecurityModeTransportWithMessageCredential に設定すると、結果は WSHttpBinding バインドと BasicHttpBinding バインドを混成したスタックになります。

  1. TransactionFlowBindingElement

  2. TransportSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpsTransportBindingElement

最後に、MTOM エンコーダーの使用結果は、WSHttpBinding とまったく同じように見えます。

  1. TransactionFlowBindingElement

  2. MtomMessageEncodingBindingElement

  3. HttpTransportBindingElement

適用対象