←Select platform

MimeType Property

Summary

MIME type of the document.

Syntax

C#
VB
Java
C++
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 Document.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents Assembly