Export (0) Print
Expand All

TextMessageEncodingBindingElement Class

The binding element that specifies the character encoding and message versioning used for text-based SOAP messages.

Namespace:  System.ServiceModel.Channels
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

'Declaration
Public NotInheritable Class TextMessageEncodingBindingElement _
	Inherits MessageEncodingBindingElement _
	Implements IWsdlExportExtension, IPolicyExportExtension

The TextMessageEncodingBindingElement type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryTextMessageEncodingBindingElementInitializes a new instance of the TextMessageEncodingBindingElement class.
Public methodSupported by Portable Class LibraryTextMessageEncodingBindingElement(MessageVersion, Encoding)Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding.
Top

  NameDescription
Public propertyMaxReadPoolSizeGets or sets the number of readers that are allocated to a pool and ready for use to process incoming messages.
Public propertyMaxWritePoolSizeGets or sets the number of writers that are allocated to a pool and ready for use to process outgoing messages.
Public propertySupported by Portable Class LibraryMessageVersionGets or sets the SOAP and WS-Addressing versions that are used to format the text message. (Overrides MessageEncodingBindingElement.MessageVersion.)
Public propertyReaderQuotasGets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding.
Public propertySupported by Portable Class LibraryWriteEncodingGets or sets the encoding that is used to format the characters in the text message.
Top

  NameDescription
Public methodSupported by Portable Class LibraryBuildChannelFactory(Of TChannel)Builds the channel factory stack on the client that creates a specified type of channel for a specified context. (Overrides BindingElement.BuildChannelFactory(Of TChannel)(BindingContext).)
Public methodBuildChannelListener(Of TChannel)Builds the channel listener on the service that accepts a specified type of channel for a specified context. (Overrides BindingElement.BuildChannelListener(Of TChannel)(BindingContext).)
Public methodSupported by Portable Class LibraryCanBuildChannelFactory(Of TChannel)Returns a value that indicates whether the binding element can build a channel factory for a specific type of channel. (Inherited from BindingElement.)
Public methodCanBuildChannelListener(Of TChannel)Returns a value that indicates whether the current binding can build a listener for a specified type of channel and context. (Overrides BindingElement.CanBuildChannelListener(Of TChannel)(BindingContext).)
Public methodSupported by Portable Class LibraryCloneCreates a new TextMessageEncodingBindingElement object initialized from the current one. (Overrides BindingElement.Clone.)
Public methodSupported by Portable Class LibraryCreateMessageEncoderFactoryCreates a factory for text message encoders that employs the message version and character encoding specified by the current encoding binding element. (Overrides MessageEncodingBindingElement.CreateMessageEncoderFactory.)
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetProperty(Of T)Returns a typed object requested, if present, from the appropriate layer in the binding element stack. (Overrides MessageEncodingBindingElement.GetProperty(Of T)(BindingContext).)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodShouldSerializeReaderQuotasReturns whether the constraints placed on the complexity of SOAP message structure should be serialized.
Public methodShouldSerializeWriteEncodingReturns whether the Encoding that is used to format the message characters should be serialized.
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIPolicyExportExtension.ExportPolicyGenerates WSDL contract information from encoding policies contained in the binding element.
Explicit interface implemetationPrivate methodIWsdlExportExtension.ExportContractGenerates WSDL contract information from encoding policies contained in the binding element.
Explicit interface implemetationPrivate methodIWsdlExportExtension.ExportEndpointGenerates WSDL contract information from encoding policies contained in the binding element.
Top

Encoding is the process of transforming a message into a sequence of bytes. Decoding is the reverse process. Windows Communication Foundation (WCF) includes three types of encoding for SOAP messages: Text, Binary and Message Transmission Optimization Mechanism (MTOM).

The text encoding represented by the TextMessageEncodingBindingElement is the most interoperable, but the least efficient encoder for XML messages. Web service or Web service client can generally understand textual XML. However, transmitting large blocks of binary data as text is not efficient.

For more information about the binding element that specifies messages are encoded using the .NET Binary Format for XML, see BinaryMessageEncodingBindingElement.

For more information about the binding element that specifies messages are encoded using the MTOM message encoding, see MtomMessageEncodingBindingElement.

For more information about how to implement a custom message encoder, use the MessageEncodingBindingElement class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft