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]
Parameters
None.
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.
[C++]
Parameters
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.
Remarks
This is a read-only property. The GetContentType property corresponds to the searchable property "DAV:getcontenttype".