MsgException

Overview

MsgException is raised when a .msg file violates the expected MAPI storage structure — for example when a required root storage entry is missing or a property stream is corrupt. It inherits from the .NET base Exception class. Catch MsgException around MsgReader, MsgDocument, and MsgWriter operations to handle format-level errors separately from I/O failures.

Constructors

SignatureDescription
MsgException(message: string)Creates a new MsgException with the specified parameters.

See Also