DeserializeReply Property

ClientOperation.DeserializeReply Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

NoteNote:

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft