ContentType Property

HttpRequestBase.ContentType Property

.NET Framework (current version)
 

When overridden in a derived class, gets or sets the MIME content type of the request.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual string ContentType { get; set; }

Property Value

Type: System.String

The MIME content type of the request, such as "text/html".

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft