AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocument.ContentType Property

Gets a string representing the content type of the document.

string ContentType {get; set;}

#### Property Value

The content type is a MIME type, such as `text/plain`. Cannot be `null`. When uploading a document that contains non-ascii characters (particularly, European accented letters), `SetContentType` needs to be called to set the content type to `text/xml;charset=iso-8859-1` prior to calling `IDocumentManager.InsertNewDocument`.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The document has not yet been inserted or has already been removed.

#### See Also

IDocument Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace