MsgDocument

Overview

MsgDocument is a class in Aspose.Email FOSS for .NET.

MsgDocument.MsgDocument creates a new MsgDocument using the supplied storage, version numbers, signature and strict mode.

Description

MsgDocument is a class in the Aspose.Email FOSS library for .NET that exposes 3 methods and 5 properties for programmatic use.

The class also provides the Root property (gets or sets the underlying msgstorage that holds the message data).

Instances are created through a single constructor that initializes the object with default values.

Properties

NameTypeAccessDescription
RootMsgStorageReadGets or sets the underlying MsgStorage that holds the message data
MajorVersionushortRead/WriteGets or sets the major version number of the MSG format
MinorVersionushortRead/Write
TransactionSignatureNumberuintRead/WriteGets or sets the transaction signature identifier used in the MSG file
StrictboolRead/WriteGets or sets whether the document enforces strict parsing and validation rules

Methods

SignatureDescription
MsgDocument(root: MsgStorage, majorVersion: ushort, minorVersion: ushort, transactionSignatureNumber: uint, strict: bool)Creates a new MsgDocument using the supplied storage, version numbers, signature and strict mode
FromFile(path: string, strict: bool)Loads a MsgDocument from the file at the given path, applying strict validation if requested
FromStream(stream: Stream, strict: bool)Loads a MsgDocument from the provided stream, applying strict validation if requested
ToCfbDocument()Converts the MsgDocument into a Compound File Binary (CFB) document representation

See Also