ContentEncoding Property

HttpWebResponse.ContentEncoding Property

 

Gets the method that is used to encode the body of the response.

Namespace:   System.Net
Assembly:  System (in System.dll)

member ContentEncoding : string with get

Property Value

Type: System.String

A string that describes the method that is used to encode the body of the response.

Exception Condition
ObjectDisposedException

The current instance has been disposed.

The ContentEncoding property contains the value of the Content-Encoding header returned with the response.

The following example uses the ContentEncoding property to obtain the value of the Content-Encoding header returned with the response.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft