MsgDocument
Overview
MsgDocument 是Python的Aspose.Email FOSS中的一个类.
可变化的MSG文档模型可以通过CFB编写器进行序列化.
这个类提供了4种方法,用于在Python程序中使用MsgDocument 对象. 有的方法包括: build_storage, from_file, from_reader, to_cfb_document. 在安装Python包的Aspose.Email FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: major_version, minor_version, root, strict, transaction_signature_number.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
root | MsgStorage | 阅读/写作 | 得到或设置根. |
major_version | int | 阅读/写作 | 获得或设置主要版本. |
minor_version | int | 阅读/写作 | 得到或设置小版本. |
transaction_signature_number | int | 阅读/写作 | 获取或设置交易签名号码. |
strict | bool | 阅读/写作 | 得到或设置严格. |
Methods
| Signature | Description |
|---|---|
from_reader(reader: MsgReader) → "MsgDocument" | 从一个 MsgReader 实例创建一个MsgDocument |
build_storage(entry: DirectoryEntry, role: str) → MsgStorage | 从一个 DirectoryEntry 和角色字符串中构建MsgStorage |
| `from_file(path: Path | str, strict: bool)→“MsgDocument”` |
to_cfb_document() → CFBDocument | 将 MsgDocument 转换为 CFBDocument. |