HttpListenerResponse.ContentEncoding Property

Gets or sets the encoding for this response's OutputStream.

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

Syntax

public Encoding ContentEncoding { get; set; }

Property Value

An Encoding object suitable for use with the data in the OutputStream property, or null reference if no encoding is specified.

Remarks

Only UTF8 encoding is supported.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

HttpListenerResponse Class
HttpListenerResponse Members
System.Net Namespace