Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

MimeType Property (Document)






MIME type of the document.
Syntax
public string MimeType {get;}
'Declaration
 
Public ReadOnly Property MimeType As String
'Usage
 
Dim instance As Document
Dim value As String
 
value = instance.MimeType
public String getMimeType()
            
public:
property String^ MimeType {
   String^ get();
}

Property Value

The MIME type of the document.
Remarks

When this document is loaded using DocumentFactory.LoadFromFile, DocumentFactory.LoadFromUri, DocumentFactory.LoadFromUriAsync or or DocumentFactory.LoadFromStream, then the value of MimeType will be parsed by the framework and set automatically. It will be the MIME of the original document file. For example, "application/pdf" for PDF documents, "image/tiff" for TIFF files, etc.

When this document is created using DocumentFactory.Create, then the MIME type is passed by the user through CreateDocumentOptions.MimeType and the same value will be set in MimeType.

The MimeType is not used by the framework directly. The user can examine this value to determine the original format of the document.

Example

For an example, refer to Document.

Requirements

Target Platforms

See Also

Reference

Document Class
Document Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features