Partager via


DispatchOperation.Formatter Property

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

Gets or sets the formatter maps between objects and messages: it is used to deserialize messages into objects and to serialize objects into messages.

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

Syntax

'Declaration
Public Property Formatter As IDispatchMessageFormatter
public IDispatchMessageFormatter Formatter { get; set; }

Remarks

Use the Formatter property to insert a custom IDispatchMessageFormatter implementation for an operation or to modify the current formatter. In the case of strongly-typed message operations, the use of the formatter can be controlled by the SerializeReply and DeserializeRequest properties.

The IDispatchMessageFormatter interface defines the SerializeReply, which converts a set of object parameters to a message, and DeserializeRequest, which converts a message to a set of return values.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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