Back to product page

ContentType property


Returns document type.

Type

A String value

Syntax

  • Basic
object.ContentType
The ContentType(object) syntax has these parts:
objectAn expression evaluating to an object of type HttpResponse.

Remarks

This property, when set, will return type of the document returned by the server, as defined by MIME definitions. Most typical this is text/html, but it can be also any other type, especially when multipart responses are returned, which contain attachments or binary files.

This property is just a 'shortcut' to Response.Headers("Content-Type") value.

Platforms

Windows