OutgoingWebResponseContext.SuppressEntityBody Property

Gets and sets a value that indicates whether Windows Communication Foundation (WCF) omits data that is normally written to the entity body of the response and forces an empty response to be returned.

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

public bool SuppressEntityBody { get; set; }

Property Value

Type: System.Boolean
If true, WCF omits any data that is normally written to the entity body of the response and forces an empty response to be returned. The default value is false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft