Vue de l’ensemble
‘MsgDocument’ représente un fichier parsé .msg comme un arbre des nœuds de ‘Storage Msg. Carcasser un dossier existant avec ‘FromFile’ ou ‘FromStream’, puis naviguer ‘Root.Sterages’ et ‘Rout.Streams’ pour accéder aux données MAPI. Appelez ‘ToCfbDokumentpour convertir le document MSG à une 'Cvb Document' crude pour l'inspection à bas niveau ou la ré-sérialisation avecCgWriter’. Le drapeau ‘Strict’ contrôle si les erreurs structurelles sont élevées ou silencieusement enregistrées.
constructeurs
| Signature | Description |
|---|
MsgDocument(root: MsgStorage, majorVersion: ushort, minorVersion: ushort, transactionSignatureNumber: uint, strict: bool) | Creates a new MsgDocument with the specified parameters. |
méthodes
| Signature | Description |
|---|
FromFile(path: string, strict: bool) | Loads a MsgDocument from the .msg file at path; strict enables structural validation. |
FromStream(stream: Stream, strict: bool) | Loads a MsgDocument from stream; strict enables structural validation. |
ToCfbDocument() | Converts this MsgDocument to a raw CfbDocument for low-level inspection or re-serialization. |
Propriétés
| Name | Type | Access | Description |
|---|
Root | MsgStorage | Read | The root MsgStorage node of the message tree. |
MajorVersion | ushort | Read | CFB major version parsed from the file header. |
MinorVersion | ushort | Read | CFB minor version parsed from the file header. |
TransactionSignatureNumber | uint | Read | CFB transaction signature number from the file header. |
Strict | bool | Read | True if strict validation was requested when this document was loaded. |
Voir aussi