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
| Name | Type | Access | Description |
|---|---|---|---|
Root | MsgStorage | Read | Gets or sets the underlying MsgStorage that holds the message data |
MajorVersion | ushort | Read/Write | Gets or sets the major version number of the MSG format |
MinorVersion | ushort | Read/Write | |
TransactionSignatureNumber | uint | Read/Write | Gets or sets the transaction signature identifier used in the MSG file |
Strict | bool | Read/Write | Gets or sets whether the document enforces strict parsing and validation rules |
Methods
| Signature | Description |
|---|---|
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 |