HttpTransportBindingElement 建構函式

定義

初始化 HttpTransportBindingElement 類別的新執行個體。

多載

HttpTransportBindingElement()

初始化 HttpTransportBindingElement 類別的新執行個體。

HttpTransportBindingElement(HttpTransportBindingElement)

使用另一個繫結項目,初始化 HttpTransportBindingElement 類別的新執行個體。

HttpTransportBindingElement()

初始化 HttpTransportBindingElement 類別的新執行個體。

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

適用於

HttpTransportBindingElement(HttpTransportBindingElement)

使用另一個繫結項目,初始化 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)  
    {  
    }  
}  

備註

這個方法是一個用來複製繫結的複製建構函式。

適用於