Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextMessageEncodingBindingElement Class

 

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

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

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Channels.MessageEncodingBindingElement
      System.ServiceModel.Channels.TextMessageEncodingBindingElement

public sealed class TextMessageEncodingBindingElement : MessageEncodingBindingElement, 
	IWsdlExportExtension, IPolicyExportExtension

NameDescription
System_CAPS_pubmethodTextMessageEncodingBindingElement()

Initializes a new instance of the TextMessageEncodingBindingElement class.

System_CAPS_pubmethodTextMessageEncodingBindingElement(MessageVersion, Encoding)

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

NameDescription
System_CAPS_pubpropertyMaxReadPoolSize

Gets or sets the number of readers that are allocated to a pool and ready for use to process incoming messages.

System_CAPS_pubpropertyMaxWritePoolSize

Gets or sets the number of writers that are allocated to a pool and ready for use to process outgoing messages.

System_CAPS_pubpropertyMessageVersion

Gets or sets the SOAP and WS-Addressing versions that are used to format the text message.(Overrides MessageEncodingBindingElement.MessageVersion.)

System_CAPS_pubpropertyReaderQuotas

Gets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding.

System_CAPS_pubpropertyWriteEncoding

Gets or sets the encoding that is used to format the characters in the text message.

NameDescription
System_CAPS_pubmethodBuildChannelFactory<TChannel>(BindingContext)

Builds the channel factory stack on the client that creates a specified type of channel for a specified context.(Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).)

System_CAPS_pubmethodBuildChannelListener<TChannel>(BindingContext)

Builds the channel listener on the service that accepts a specified type of channel for a specified context.(Overrides BindingElement.BuildChannelListener<TChannel>(BindingContext).)

System_CAPS_pubmethodCanBuildChannelFactory<TChannel>(BindingContext)

Returns a value that indicates whether the binding element can build a channel factory for a specific type of channel.(Inherited from BindingElement.)

System_CAPS_pubmethodCanBuildChannelListener<TChannel>(BindingContext)

Returns a value that indicates whether the current binding can build a listener for a specified type of channel and context.(Overrides BindingElement.CanBuildChannelListener<TChannel>(BindingContext).)

System_CAPS_pubmethodClone()

Creates a new TextMessageEncodingBindingElement object initialized from the current one.(Overrides BindingElement.Clone().)

System_CAPS_pubmethodCreateMessageEncoderFactory()

Creates a factory for text message encoders that employs the message version and character encoding specified by the current encoding binding element.(Overrides MessageEncodingBindingElement.CreateMessageEncoderFactory().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetProperty<T>(BindingContext)

Returns a typed object requested, if present, from the appropriate layer in the binding element stack.(Overrides MessageEncodingBindingElement.GetProperty<T>(BindingContext).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodShouldSerializeReaderQuotas()

Returns whether the constraints placed on the complexity of SOAP message structure should be serialized.

System_CAPS_pubmethodShouldSerializeWriteEncoding()

Returns whether the Encoding that is used to format the message characters should be serialized.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Generates WSDL contract information from encoding policies contained in the binding element.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

Generates WSDL contract information from encoding policies contained in the binding element.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

Generates WSDL contract information from encoding policies contained in the binding element.

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

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

Return to top
Show:
© 2016 Microsoft