BinaryMessageEncodingBindingElement Class
TOC
Collapse the table of content
Expand the table of content

BinaryMessageEncodingBindingElement Class

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

The binding element that specifies the .NET Binary Format for XML used to encode messages.

System::Object
  System.ServiceModel.Channels::BindingElement
    System.ServiceModel.Channels::MessageEncodingBindingElement
      System.ServiceModel.Channels::BinaryMessageEncodingBindingElement

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

No code example is currently available or this language may not be supported.

The BinaryMessageEncodingBindingElement type exposes the following members.

  NameDescription
Public methodBinaryMessageEncodingBindingElementInitializes a new instance of the BinaryMessageEncodingBindingElement class.
Top

  NameDescription
Public propertyMessageVersionGets or sets the SOAP message and WS-Addressing versions that are used or expected. (Overrides MessageEncodingBindingElement::MessageVersion.)
Top

  NameDescription
Public methodBuildChannelFactory<TChannel>Builds the channel factory stack on the client that creates a specified type of channel for a specified context. (Overrides BindingElement::BuildChannelFactory<TChannel>(BindingContext).)
Public methodCanBuildChannelFactory<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 methodCloneCreates a new BinaryMessageEncodingBindingElement object initialized from the current one. (Overrides BindingElement::Clone().)
Public methodCreateMessageEncoderFactoryCreates a factory for binary message encoders that employ the SOAP and WS-Addressing versions and the character encoding specified by the current encoding binding element. (Overrides MessageEncodingBindingElement::CreateMessageEncoderFactory().)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperty<T>Returns the typed object requested, if present, from the appropriate layer in the channel stack. (Inherited from MessageEncodingBindingElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Encoding is the process of transforming a message into a sequence of bytes. Decoding is the reverse process. Windows Phone includes two types of encoding for SOAP messages: Text and Binary.

The BinaryMessageEncodingBindingElement is the binding element that specified the .NET Binary Format for XML should be used for encoding messages, and has options to specify the character encoding and the SOAP and WS-Addressing version to be used. Binary encoding is the most efficient but least interoperable of the encoding options.

For more information about

the binding element that specifies messages are encoded using a textual representation of XML, see TextMessageEncodingBindingElement.

To implement a custom message encoder, use the MessageEncodingBindingElement class.

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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:
© 2017 Microsoft