WSFederationHttpBinding.CreateBindingElements Method

Definition

Creates a collection with the binding elements for the binding.

public override System.ServiceModel.Channels.BindingElementCollection CreateBindingElements ();

Returns

The ICollection<T> of type BindingElement that makes up the binding.

Remarks

The stack of binding elements depends on the value of the WSFederationHttpSecurityMode set.

The stack of binding elements in WSFederationHttpBinding is the same as that contained in WSHttpBinding when Security is set to the default value of Message.

  1. TransactionFlowBindingElement

  2. SymmetricSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpTransportBindingElement

However, setting WSFederationHttpSecurityMode to TransportWithMessageCredential results in a stack that is something of a hybrid between the WSHttpBinding and BasicHttpBinding bindings.

  1. TransactionFlowBindingElement

  2. TransportSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpsTransportBindingElement

Finally, using the MTOM encoder looks exactly the same as for WSHttpBinding.

  1. TransactionFlowBindingElement

  2. MtomMessageEncodingBindingElement

  3. HttpTransportBindingElement

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1