MsgReader

Overview

MsgReader is a class in Aspose.Email FOSS for .NET. Inherits from: IDisposable.

MsgReader.FromFile reads a MSG file from the given path and optionally validates it when strict is true.

Description

MsgReader is a class in the Aspose.Email FOSS library for .NET that exposes 3 methods and 1 property for programmatic use. It extends IDisposable, inheriting shared functionality from its parent type.

The class also provides the ValidationIssues property (provides a read‑only list of validation error messages detected during parsing).

Properties

NameTypeAccessDescription
ValidationIssuesIReadOnlyList<string>ReadProvides a read‑only list of validation error messages detected during parsing

Methods

SignatureDescription
FromFile(path: string, strict: bool)Reads a MSG file from the given path and optionally validates it when strict is true
FromStream(stream: Stream, strict: bool)Reads a MSG document from the provided stream and optionally validates it when strict is true
Dispose()Releases any resources held by the reader

See Also