Share via


WebResponse.ContentType Property

When overridden in a derived class, gets or sets the content type of the data being received.

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

Syntax

public virtual string ContentType { get; set; }

Property Value

A string that contains the content type of the response.

Version Information

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

See Also

Reference

WebResponse Class
WebResponse Members
System.Net Namespace