DeserializeRequest Property

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show:
© 2016 Microsoft