HttpTransportBindingElement Konstruktoren

Definition

Initialisiert eine neue Instanz der HttpTransportBindingElement-Klasse.

Überlädt

HttpTransportBindingElement()

Initialisiert eine neue Instanz der HttpTransportBindingElement-Klasse.

HttpTransportBindingElement(HttpTransportBindingElement)

Initialisiert unter Verwendung eines anderen Bindungselements eine neue Instanz der HttpTransportBindingElement-Klasse.

HttpTransportBindingElement()

Initialisiert eine neue Instanz der HttpTransportBindingElement-Klasse.

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

Gilt für

HttpTransportBindingElement(HttpTransportBindingElement)

Initialisiert unter Verwendung eines anderen Bindungselements eine neue Instanz der HttpTransportBindingElement-Klasse.

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)

Parameter

elementToBeCloned
HttpTransportBindingElement

Ein HttpTransportBindingElement-Objekt, mit dem diese Instanz initialisiert werden soll.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie der Kopierkonstruktor in einer abgeleiteten Klasse verwendet wird.

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

Hinweise

Diese Methode ist ein Kopierkonstruktor, mit dem die Bindung geklont wird.

Gilt für