ClientOperation.Formatter Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the formatter that serializes objects into messages and deserializes messages into objects.
Namespace: System.ServiceModel.Dispatcher
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public Property Formatter As IClientMessageFormatter
public IClientMessageFormatter Formatter { get; set; }
Property Value
Type: System.ServiceModel.Dispatcher.IClientMessageFormatter
An IClientMessageFormatter implementation.
Remarks
Use the Formatter property to insert a custom IClientMessageFormatter implementation for an operation or modify the current formatter. The use of the formatter can be controlled by the SerializeRequest and DeserializeReply properties.
The IClientMessageFormatter interface defines the SerializeRequest and DeserializeReply methods, which are used to convert a set of object parameters to a message and from a message to a set of return values, respectively.
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.