GetContentType Property

The GetContentType property contains the type of the document. This is the Multipurpose Internet Mail Extensions (MIME) type of the content, such as text/html or text/xml.

Property GetContentType As String [C++]
Get method:
HRESULT get_GetContentType(BSTR*varGetContentType);

[Visual Basic]



Return Values

This property returns a String that contains the type of the document.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.



Get method:

  • varGetContentType
    [out, retval] Pointer to a BSTR that contains the type of the document.
Return Value

For a list of error messages returned by SharePoint Portal Server, see Error Messages.


This is a read-only property. The GetContentType property corresponds to the searchable property "DAV:getcontenttype".