DispatchOperation.DeserializeRequest Property

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

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

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

Syntax

'Declaration
Public Property DeserializeRequest As Boolean
public bool DeserializeRequest { get; set; }

Property Value

Type: System.Boolean
false if the return type is of type Message and there are no out parameters; otherwise, true.

Remarks

Use the DeserializeRequest property to control whether the formatter deserializes the return value from an inbound message or whether the inbound message is returned directly as the return value. If the value is false, the return type must be of type Message and there can be no out parameters, otherwise an InvalidCastException is thrown at run-time.

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.