SuppressEntityBody Property
Collapse the table of content
Expand the table of content

HttpRequestMessageProperty.SuppressEntityBody 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 body of the message is ignored and only the headers are sent.

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

public bool SuppressEntityBody { get; set; }

Property Value

Type: System.Boolean
true if the message body is suppressed; otherwise, false. The default is false.

This property is used for empty message requests: for example, a service that accepts a GET request without a message body. In this case, when building the HttpRequestMessageProperty object for the response message, set the SuppressEntityBody property to true.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft