ClientOperation.DeserializeReply Property

Gets or sets a value that indicates whether the Formatter property value is used to deserialize the reply message.

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

public bool DeserializeReply { get; set; }

Property Value

Type: System.Boolean
true if the return type is not a Message; otherwise, false.

Use the DeserializeReply property to control whether the formatter deserializes the return value from an inbound message or the inbound message is returned directly as the return value.


If false, the return type must be of type Message and there can be no out parameters or an InvalidCastException is thrown at run time. If the message is null, a InvalidOperationException is thrown at run time.


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

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

Community Additions