ערוך

שתף באמצעות


WSFederationHttpBinding.CreateBindingElements Method

Definition

Creates a collection with the binding elements for the binding.

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

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