HttpTransportBindingElement 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化該 HttpTransportBindingElement類別的新實例。
多載
| 名稱 | Description |
|---|---|
| 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)
{
}
}
備註
此方法是一種複製構造器,用於複製綁定。