Szerkesztés

Megosztás a következőn keresztül:


StandardBindingElement.ApplyConfiguration(Binding) Method

Definition

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

public:
 virtual void ApplyConfiguration(System::ServiceModel::Channels::Binding ^ binding);
public void ApplyConfiguration (System.ServiceModel.Channels.Binding binding);
abstract member ApplyConfiguration : System.ServiceModel.Channels.Binding -> unit
override this.ApplyConfiguration : System.ServiceModel.Channels.Binding -> unit
Public Sub ApplyConfiguration (binding As Binding)

Parameters

binding
Binding

A binding.

Implements

Exceptions

binding is null.

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

Remarks

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.

Applies to