HttpTransportBindingElement 构造函数

定义

初始化 HttpTransportBindingElement 类的新实例。

重载

HttpTransportBindingElement()

初始化 HttpTransportBindingElement 类的新实例。

HttpTransportBindingElement(HttpTransportBindingElement)

初始化使用另一个绑定元素的 HttpTransportBindingElement 类的新实例。

HttpTransportBindingElement()

Source:
HttpTransportBindingElement.cs
Source:
HttpTransportBindingElement.cs
Source:
HttpTransportBindingElement.cs

初始化 HttpTransportBindingElement 类的新实例。

public:
 HttpTransportBindingElement();
public HttpTransportBindingElement ();
Public Sub New ()

适用于

HttpTransportBindingElement(HttpTransportBindingElement)

Source:
HttpTransportBindingElement.cs
Source:
HttpTransportBindingElement.cs
Source:
HttpTransportBindingElement.cs

初始化使用另一个绑定元素的 HttpTransportBindingElement 类的新实例。

protected:
 HttpTransportBindingElement(System::ServiceModel::Channels::HttpTransportBindingElement ^ elementToBeCloned);
protected HttpTransportBindingElement (System.ServiceModel.Channels.HttpTransportBindingElement elementToBeCloned);
new System.ServiceModel.Channels.HttpTransportBindingElement : System.ServiceModel.Channels.HttpTransportBindingElement -> System.ServiceModel.Channels.HttpTransportBindingElement
Protected Sub New (elementToBeCloned As HttpTransportBindingElement)

参数

elementToBeCloned
HttpTransportBindingElement

用于初始化此实例的 HttpTransportBindingElement 对象。

示例

下面的示例演示如何在派生类中使用复制构造函数。

public class MyBindingElement : HttpTransportBindingElement  
{  
    public MyBindingElement(MyBindingElement elementToBeCloned) : base(elementToBeCloned)  
    {  
    }  
}  

注解

此方法是用于克隆绑定的复制构造函数。

适用于