MessageEncodingBindingElement Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Initializes a new instance of the MessageEncodingBindingElement class.
protected:
MessageEncodingBindingElement();
protected MessageEncodingBindingElement ();
Protected Sub New ()
Applies to
MessageEncodingBindingElement(MessageEncodingBindingElement)
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);
}