# EmbeddedFile.MimeType Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.DocumentServer.PDF`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.PDF > EmbeddedFile.MimeType Property
- **334 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/embeddedfile/mimetype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/embeddedfile/mimetype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/embeddedfile/mimetype-property/llms-full.txt

---

### 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

```csharp
public string MimeType { get; }
```

```vbnet
Public ReadOnly Property MimeType As String
```

### Examples

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [EmbeddedFile.LastModificationDate Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/embeddedfile/lastmodificationdate-property/llms-full.txt)
- **Next:** [EmbeddedFile.Relationship Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/embeddedfile/relationship-property/llms-full.txt)
