Windows Dev Center

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.

IClientMessageFormatter Interface

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

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

public interface IClientMessageFormatter

The IClientMessageFormatter type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryDeserializeReplyConverts a message into a return value and out parameters that are passed back to the calling operation.
Public methodSupported by Portable Class LibrarySerializeRequestConverts an Object array into an outbound Message.
Top

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 Windows Communication Foundation (WCF) client formatters to the Formatter property to handle this conversion explicitly.

.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
Show:
© 2015 Microsoft