TextMessageEncodingBindingElement 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 TextMessageEncodingBindingElement class.
Overloads
TextMessageEncodingBindingElement() |
Initializes a new instance of the TextMessageEncodingBindingElement class. |
TextMessageEncodingBindingElement(MessageVersion, Encoding) |
Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding. |
TextMessageEncodingBindingElement()
Initializes a new instance of the TextMessageEncodingBindingElement class.
public:
TextMessageEncodingBindingElement();
public TextMessageEncodingBindingElement ();
Public Sub New ()
Remarks
The default MessageVersion for this constructor is the version of WS-Addressing 1.0 and SOAP 1.2. The default text encoding is the UTF-8 format.
Applies to
TextMessageEncodingBindingElement(MessageVersion, Encoding)
Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding.
public:
TextMessageEncodingBindingElement(System::ServiceModel::Channels::MessageVersion ^ messageVersion, System::Text::Encoding ^ writeEncoding);
public TextMessageEncodingBindingElement (System.ServiceModel.Channels.MessageVersion messageVersion, System.Text.Encoding writeEncoding);
new System.ServiceModel.Channels.TextMessageEncodingBindingElement : System.ServiceModel.Channels.MessageVersion * System.Text.Encoding -> System.ServiceModel.Channels.TextMessageEncodingBindingElement
Public Sub New (messageVersion As MessageVersion, writeEncoding As Encoding)
Parameters
- messageVersion
- MessageVersion
The MessageVersion that is used for the message version.
Exceptions
messageVersion
or writeEncoding
is null
.
writeEncoding
value is not valid.
Applies to
.NET