When overridden in a descendant class, gets or sets the content type of the request data being sent.
A string that represents the content type of the request data.
Type Reason NotSupportedException This property is not implemented in the derived class.
The WebRequest.ContentType property contains the media type of the request. This is typically the MIME encoding of the content.
The System.Net.WebRequest class is an abstract class. The actual behavior of System.Net.WebRequest instances at run time is determined by the descendant class returned by the WebRequest.Create(Uri) method. For more information about default values and exceptions, see the documentation for the descendant classes, such as System.Net.HttpWebRequest and System.Net.FileWebRequest.