MimeType Property
- Namespace
TXTextControl.DocumentServer. PDF
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property MimeType As StringExamples
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.");Console.WriteLine($"Mime Type: {embeddedFile.MimeType}")
Console.WriteLine("Embedded File is ready for use.")Limitations
Read only.