HttpTransportBindingElement Konstruktorer

Definition

Initierar en ny instans av HttpTransportBindingElementklassen.

Överlagringar

Name Description
HttpTransportBindingElement()

Initierar en ny instans av HttpTransportBindingElement klassen.

HttpTransportBindingElement(HttpTransportBindingElement)

Initierar en ny instans av HttpTransportBindingElement klassen med ett annat bindningselement.

HttpTransportBindingElement()

Källa:
HttpTransportBindingElement.cs
Källa:
HttpTransportBindingElement.cs
Källa:
HttpTransportBindingElement.cs

Initierar en ny instans av HttpTransportBindingElement klassen.

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

Gäller för

HttpTransportBindingElement(HttpTransportBindingElement)

Källa:
HttpTransportBindingElement.cs
Källa:
HttpTransportBindingElement.cs
Källa:
HttpTransportBindingElement.cs

Initierar en ny instans av HttpTransportBindingElement klassen med ett annat bindningselement.

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)

Parametrar

elementToBeCloned
HttpTransportBindingElement

Ett HttpTransportBindingElement objekt som används för att initiera den här instansen.

Exempel

I följande exempel visas hur du använder kopieringskonstruktorn i en härledd klass.

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

Kommentarer

Den här metoden är en kopieringskonstruktor som används för att klona bindningen.

Gäller för