MsgStorage

Overview

MsgStorage is a named storage node within a .msg document tree with a semantic Role (message, recipient, attachment, or embedded message). It holds child MsgStream property streams and child MsgStorage sub-storages. Use AddStream and AddStorage to construct a document tree, and FindStream/FindStorage to locate named children when reading. Pass the completed root MsgStorage to MsgWriter to serialize the full document.

Constructors

SignatureDescription
MsgStorage(name: string, role: MsgStorageRole)Creates a new MsgStorage with the specified parameters.

Methods

SignatureDescription
AddStream(stream: MsgStream)Adds stream as a child property stream of this storage.
AddStorage(storage: MsgStorage)Adds storage as a child sub-storage of this storage.
FindStream(name: string)Returns the MsgStream whose Name equals name, or null if not found.
FindStorage(name: string)Returns the MsgStorage whose Name equals name, or null if not found.

Properties

NameTypeAccessDescription
NamestringReadCFB storage name for this node (e.g. __substg1.0_0037001F or Root Entry).
RoleMsgStorageRoleReadSemantic role of this storage node as a MsgStorageRole value.
Clsidbyte[]Read16-byte CLSID of this storage entry; zeros for most MSG storages.
StateBitsuintReadUser-defined state bits stored in the CFB directory entry for this storage.
CreationTimeulongReadCFB creation timestamp for this storage entry (64-bit FILETIME).
ModifiedTimeulongReadCFB last-modification timestamp for this storage entry (64-bit FILETIME).
StreamsIList<MsgStream>ReadOrdered list of MsgStream children of this storage.
StoragesIList<MsgStorage>ReadOrdered list of MsgStorage child storages of this storage.

See Also