語言

HttpTransportBindingElement 建構函式

定義

初始化該 HttpTransportBindingElement類別的新實例。

多載

名稱 Description
HttpTransportBindingElement()

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

HttpTransportBindingElement(HttpTransportBindingElement)

使用另一個綁定元素初始化該 HttpTransportBindingElement 類別的新實例。

HttpTransportBindingElement()

來源:
HttpTransportBindingElement.cs
來源:
HttpTransportBindingElement.cs
來源:
HttpTransportBindingElement.cs

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

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

適用於

HttpTransportBindingElement(HttpTransportBindingElement)

來源:
HttpTransportBindingElement.cs
來源:
HttpTransportBindingElement.cs
來源:
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)
    {
    }
}

備註

此方法是一種複製構造器,用於複製綁定。

適用於