StandardBindingElement.ApplyConfiguration(Binding) 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.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈