WSHttpBinding::CreateBindingElements Method ()
Returns an ordered collection of binding elements contained in the current binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Return Value
Type: System.ServiceModel.Channels::BindingElementCollection^The BindingElementCollection that contains the ordered stack of binding elements described by the WSHttpBinding binding.
| Exception | Condition |
|---|---|
| InvalidOperationException | The transport security mode set cannot provide the reliable session that has been enabled. |
The order of the binding elements is important. It reflects the order in which the protocol and transport channels are constructed and stacked.
The following example shows how to obtain the BindingElementCollection that contains the ordered stack of binding elements described by WSHttpBinding binding.
Available since 3.0