TX Text Control .NET Server

MimeType Property

Property|Introduced in 33.0
Namespace
TXTextControl.DocumentServer.PDF
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Gets an optional string specifying the file's type using types specified through the Multipurpose Internet Mail Extensions (MIME) specification. When a file is embedded and a type is not specified the default type application/octet-stream is used.

Syntax

public string MimeType { get; }

Examples

The following example includes the mime type value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Mime Type: {embeddedFile.MimeType}");
Console.WriteLine("Embedded File is ready for use.");

Limitations

Read only.