Share via


HttpWebRequest.ContentType Property

Gets or sets the type of the entity body (the value of the content type).

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

Syntax

public override string ContentType { get; set; }

Property Value

The value of the Content-type HTTP header. The default value is null.

Remarks

Setting to null clears the content-type.

Version Information

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

See Also

Reference

HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace