←Select platform

MimeType Property

Summary

MIME type of the document.

Syntax
C#
VB
C++
Java
public string MimeType { get; } 
Public ReadOnly Property MimeType() As String 
   Get 
public:  
   property String^ MimeType 
   { 
      String^ get() 
   } 
public String getMimeType() 

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 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 LEADDocument.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly