DispatchOperation.DeserializeRequest Property

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)

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.

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.

  • Note   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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft