System.Net.HttpWebResponse.ContentEncoding Property

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

Syntax

public string ContentEncoding { get; }

Value

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

Exceptions

TypeReason
ObjectDisposedExceptionThe current instance has been disposed.

Remarks

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

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0