TextMessageEncodingBindingElement Constructor (MessageVersion, Encoding)
Collapse the table of content
Expand the table of content

TextMessageEncodingBindingElement Constructor (MessageVersion, Encoding)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Public Sub New ( _
	messageVersion As MessageVersion, _
	writeEncoding As Encoding _
)

Parameters

messageVersion
Type: System.ServiceModel.Channels.MessageVersion
The MessageVersion that is used for the message version.
writeEncoding
Type: System.Text.Encoding
The Encoding that is used to format the message characters.

ExceptionCondition
ArgumentNullException

messageVersion or writeEncoding is Nothing.

ArgumentException

writeEncoding value is not valid.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft