This documentation is archived and is not being maintained.

DispatchOperation.Formatter Property

Gets or sets the formatter that deserializes messages into objects and serializes objects into messages.

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

public IDispatchMessageFormatter Formatter { get; set; }
/** @property */
public IDispatchMessageFormatter get_Formatter ()

/** @property */
public void set_Formatter (IDispatchMessageFormatter value)

public function get Formatter () : IDispatchMessageFormatter

public function set Formatter (value : IDispatchMessageFormatter)

Not applicable.

Property Value

An IDispatchMessageFormatter implementation.

Use the Formatter property to insert a custom IDispatchMessageFormatter implementation for an operation or 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 and DeserializeRequest 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: