---
title: "MapiMessage.IsMsgFormat"
url: "https://reference.aspose.com/email/net/aspose.email.mapi/mapimessage/ismsgformat/"
product: "Aspose.Email for .NET API Reference"
description: "MapiMessage method. Determines whether a file is in MSG format"
---

## IsMsgFormat(string) {#ismsgformat_1}

Determines whether a file is in MSG format.

```csharp
public static bool IsMsgFormat(string fileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The path of the file. |

### Return Value

`true` if the file is in MSG format; otherwise, `false`.

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)

---

## IsMsgFormat(Stream) {#ismsgformat}

Determines whether a stream contains a message in MSG format.

```csharp
public static bool IsMsgFormat(Stream stream)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream to check. |

### Return Value

`true` if the stream is in MSG format; otherwise, `false`.

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)


