HttpWebRequest.MediaType Property

Gets or sets the media type of the request.

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

Syntax

public string MediaType { get; set; }

Property Value

The media type of the request. The default value is null.

Version Information

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

See Also

Reference

HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace