Edit

Share via


MessageEncodingBindingElement Constructors

Definition

Initializes a new instance of the MessageEncodingBindingElement class.

Overloads

MessageEncodingBindingElement()

Initializes a new instance of the MessageEncodingBindingElement class.

MessageEncodingBindingElement(MessageEncodingBindingElement)

Initializes a new instance of the MessageEncodingBindingElement class initialized from an existing element.

MessageEncodingBindingElement()

Source:
MessageEncodingBindingElement.cs
Source:
MessageEncodingBindingElement.cs

Initializes a new instance of the MessageEncodingBindingElement class.

protected:
 MessageEncodingBindingElement();
protected MessageEncodingBindingElement ();
Protected Sub New ()

Applies to

MessageEncodingBindingElement(MessageEncodingBindingElement)

Source:
MessageEncodingBindingElement.cs
Source:
MessageEncodingBindingElement.cs

Initializes a new instance of the MessageEncodingBindingElement class initialized from an existing element.

protected:
 MessageEncodingBindingElement(System::ServiceModel::Channels::MessageEncodingBindingElement ^ elementToBeCloned);
protected MessageEncodingBindingElement (System.ServiceModel.Channels.MessageEncodingBindingElement elementToBeCloned);
new System.ServiceModel.Channels.MessageEncodingBindingElement : System.ServiceModel.Channels.MessageEncodingBindingElement -> System.ServiceModel.Channels.MessageEncodingBindingElement
Protected Sub New (elementToBeCloned As MessageEncodingBindingElement)

Parameters

elementToBeCloned
MessageEncodingBindingElement

The MessageEncodingBindingElement to be cloned.

Examples

The following code illustrates how to implement this constructor:

CustomTextMessageBindingElement(CustomTextMessageBindingElement binding)
    : this(binding.Encoding, binding.MediaType, binding.MessageVersion)
{
    this.readerQuotas = new XmlDictionaryReaderQuotas();
    binding.ReaderQuotas.CopyTo(this.readerQuotas);
}

Applies to