---
Product: Aspose.Email
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/email/net/msg-reader
---

# MsgReader

## Overview

`MsgReader` is a high-level reader for `.msg` email files that validates the MAPI storage structure and reports inconsistencies via `ValidationIssues`. Construct it with `FromFile` or `FromStream`, inspect `ValidationIssues` for any detected structural problems, then pass the result to `MapiMessage.FromMsgDocument` or use it directly to access the parsed document tree. Implements `IDisposable`.

## Methods

| Signature | Description |
|-----------|-------------|
| `FromFile(path: string, strict: bool)` | Opens the `.msg` file at `path` and returns a new `MsgReader`. |
| `FromStream(stream: Stream, strict: bool)` | Reads a `.msg` document from `stream` and returns a new `MsgReader`. |
| `Dispose()` | Releases any file handle or stream held by this reader. |

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `ValidationIssues` | `IReadOnlyList<string>` | Read | Read-only list of structural issues found during parsing; empty when the file is well-formed. |

## See Also
- [Aspose.Email for .NET — Enterprise API Reference](https://reference.aspose.com/email/net/)