HttpTransportBindingElement Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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()
Initierar en ny instans av HttpTransportBindingElement klassen.
public:
HttpTransportBindingElement();
public HttpTransportBindingElement();
Public Sub New ()
Gäller för
HttpTransportBindingElement(HttpTransportBindingElement)
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.