Share via


ContentEncoding Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public ReadOnly Property ContentEncoding As String
public string ContentEncoding { get; }
public:
property String^ ContentEncoding {
    String^ get ();
}
member ContentEncoding : string with get
function get ContentEncoding () : String

Property Value

Type: System. . :: . .String
A string that describes the method that is used to encode the body of the response.

Remarks

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

.NET Framework Security

See Also

Reference

HttpWebResponse Class

System.Net Namespace