HttpTransportBindingElement Oluşturucular

Tanım

Sınıfının yeni bir örneğini HttpTransportBindingElementbaşlatır.

Aşırı Yüklemeler

Name Description
HttpTransportBindingElement()

HttpTransportBindingElement sınıfının yeni bir örneğini başlatır.

HttpTransportBindingElement(HttpTransportBindingElement)

Başka bir bağlama öğesi kullanarak sınıfın HttpTransportBindingElement yeni bir örneğini başlatır.

HttpTransportBindingElement()

Kaynak:
HttpTransportBindingElement.cs
Kaynak:
HttpTransportBindingElement.cs
Kaynak:
HttpTransportBindingElement.cs

HttpTransportBindingElement sınıfının yeni bir örneğini başlatır.

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

Şunlara uygulanır

HttpTransportBindingElement(HttpTransportBindingElement)

Kaynak:
HttpTransportBindingElement.cs
Kaynak:
HttpTransportBindingElement.cs
Kaynak:
HttpTransportBindingElement.cs

Başka bir bağlama öğesi kullanarak sınıfın HttpTransportBindingElement yeni bir örneğini başlatır.

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)

Parametreler

elementToBeCloned
HttpTransportBindingElement

HttpTransportBindingElement Bu örneği başlatmak için kullanılan nesne.

Örnekler

Aşağıdaki örnekte, türetilmiş bir sınıfta kopya oluşturucunun nasıl kullanılacağı gösterilmektedir.

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

Açıklamalar

Bu yöntem, bağlamayı kopyalamak için kullanılan bir kopya oluşturucudur.

Şunlara uygulanır