CustomBindingElement Class

Represents the configuration section that provides full control over the messaging stack for the user.


Namespace: System.ServiceModel.Configuration
Assembly: System.ServiceModel (in system.servicemodel.dll)

public class CustomBindingElement : NamedServiceModelExtensionCollectionElement<BindingElementExtensionElement>, ICollection<BindingElementExtensionElement>, IEnumerable<BindingElementExtensionElement>, 
	IEnumerable, IBindingConfigurationElement
public class CustomBindingElement extends NamedServiceModelExtensionCollectionElement<BindingElementExtensionElement> implements ICollection<BindingElementExtensionElement>, 
	IEnumerable<BindingElementExtensionElement>, IEnumerable, IBindingConfigurationElement
public class CustomBindingElement extends NamedServiceModelExtensionCollectionElement<BindingElementExtensionElement> implements ICollection<BindingElementExtensionElement>, 
	IEnumerable<BindingElementExtensionElement>, IEnumerable, IBindingConfigurationElement

Custom bindings provide full control over the Windows Communication Foundation (WCF) messaging stack. An individual binding defines the message stack by specifying the configuration elements for the stack elements in the order they appear on the stack. Each element defines and configures the one element of the stack. There must be one and only one transport element in each custom binding. Without this element, the messaging stack is incomplete.

The order in which elements appear in the stack matters, because it is the order in which operations are applied to the message. The recommended order of stack elements is the following:

  1. Transactions (optional)

  2. Reliable Messaging (optional)

  3. Security (optional)

  4. Transport

  5. Encoder (optional)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Footer image


Show: