HttpPostedFileBase.ContentType Property

 

When overridden in a derived class, gets the MIME content type of an uploaded file.

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

abstract ContentType : string with get
override ContentType : string with get

Property Value

Type: System.String

The MIME content type of the file.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: