IClientMessageFormatter Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines methods that are used to control the conversion of messages into objects and objects into messages for client applications.

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

Syntax

'Declaration
Public Interface IClientMessageFormatter
public interface IClientMessageFormatter

The IClientMessageFormatter type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone DeserializeReply Converts a message into a return value and out parameters that are passed back to the calling operation.
Public methodSupported by Silverlight for Windows Phone SerializeRequest Converts an Object array into an outbound Message.

Top

Remarks

Implement the IClientMessageFormatter interface to create a custom client formatter that serializes objects into messages and deserializes messages into objects for a particular operation.

Attach custom Silverlight client formatters to the Formatter property to handle this conversion explicitly.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.