Aspose.Email FOSS for .NET

API reference for Aspose.Email FOSS for .NET. 29 public types organized by module.

Aspose.Email.Foss

ClassDescription
CfbConstantsCfbConstants.ByteOrderLittleEndian identifies little-endian integer encoding in CFB files.
CfbDocumentCfbDocument can be instantiated directly, or created from existing data using CfbDocument.FromFile(path), FromStream(stream), or FromReader(reader).
CfbExceptionCfbException.CfbException creates an exception instance containing the provided error message.
CfbNodeCfbNode provides metadata for each entry in a CFB container, including Name, Clsid, CreationTime, and ModifiedTime.
CfbReaderCfbReader.FromFile(path) opens a CFB file and provides access to its header, FAT, MiniFAT, and directory entries via properties such as MajorVersion and SectorSize.
CfbStorageCfbStorage.CfbStorage initializes a new storage node with the specified name.
CfbStreamCfbStream.CfbStream creates a new CfbStream with the specified name and optional byte array data.
CfbWriterCfbWriter.WriteFile(document, path) serializes a CfbDocument to a file, while ToBytes(document) returns the binary representation as a byte array.
DirectoryEntryDirectoryEntry methods IsStorage(), IsStream(), and IsRoot() let developers determine the type of a directory entry when traversing a CFB structure.
DirectoryEntryNameComparerDirectoryEntryNameComparer.Compare compares two name strings and returns an int indicating sort order.
HeaderHeader.SectorSize represents the size of a regular sector in bytes.
MapiAttachmentMapiAttachment.FromBytes(filename, data, mimeType, contentId) creates an attachment object that can be added to a message; its properties Filename, MimeType, and Data expose the attachment metadata and content.
MapiMessageMapiMessage.Create(subject, body, unicodeStrings) constructs a new mutable message with the given subject and body.
MapiPropertyMapiProperty.MapiProperty constructs a property with given id, type, value, and flags.
MapiPropertyCollectionMapiPropertyCollection.Set(property:MapiProperty) adds or updates the specified MapiProperty in the collection.
MapiRecipientMapiRecipient.DisplayName gets or sets the recipient’s display name.
MsgConstantsMsgConstants.PropertyStreamName provides the standard name of the top‑level property stream used in MSG files.
MsgDocumentMsgDocument.FromFile(path, strict) loads an MSG file into a MsgDocument object for inspection or modification.
MsgExceptionMsgException.MsgException creates a new exception with the given message.
MsgReaderMsgReader.FromFile(path, strict) creates a MsgReader that reads an Outlook MSG file from the specified file path.
MsgStorageMsgStorage.AddStream(stream) adds a MsgStream to the storage, allowing custom binary data to be embedded in the MSG file.
MsgStreamMsgStream.MsgStream initializes a new stream with a name and optional data bytes.
MsgWriterMsgWriter.WriteFile(document, path) writes a MsgDocument to the given file path in MSG format.

Enumerations

EnumerationDescription
CommonMessagePropertyIdCommon MAPI property identifiers used by the MSG reader and writer for core message semantics, body fields, transport headers, and attachments.
DirectoryColorFlagStores the red-black tree color used by directory sibling links.
DirectoryObjectTypeClassifies the directory entry payload as unallocated, storage, stream, or root storage.
MsgStorageRoleMsgStorageRole.Generic represents a generic storage role not specific to other categories.
PropertyTypeCodeMAPI property type codes that appear in property tags and stream names in MSG files.
SectorMarkerSpecial FAT marker values reserved for sector allocation metadata.

See Also