StandardBindingElement::ApplyConfiguration Method (Binding^)

 

Applies the content of the specified binding to this binding configuration element.

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

public:
virtual void ApplyConfiguration(
	Binding^ binding
) sealed

Parameters

binding
Type: System.ServiceModel.Channels::Binding^

A binding.

Exception Condition
ArgumentNullException

binding is null.

ArgumentException

The type of this binding element is different from the type specified by binding.

The Name of the standard binding specified in binding is ignored during this operation. This is because the Name attribute of a binding is used in conjunction with the Namespace attribute of the same binding to generate the correct WSDL for a binding. However, the Name property of this type is mainly used as a key to identify this binding element in the binding collection. Therefore, the Name property is not modified during this operation.

.NET Framework
Available since 3.0
Return to top
Show: