WSFederationHttpBinding.CreateBindingElements Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
However, setting WSFederationHttpSecurityMode to TransportWithMessageCredential results in a stack that is something of a hybrid between the WSHttpBinding and BasicHttpBinding bindings.
Finally, using the MTOM encoder looks exactly the same as for WSHttpBinding.