MsgStorage
概述
MsgStorage 是 Aspose.Email FOSS 中用于 Python 的类。
可变的 MSG 存储节点,具备角色分类和已解析的属性流元数据。
此类提供 6 个方法,用于在 Python 程序中处理 MsgStorage 对象。可用的方法包括:add_storage、add_stream、find_storage、find_stream、iter_storages、iter_streams。在安装了用于 Python 的 Aspose.Email FOSS 包后,所有公共成员对任何 Python 应用程序均可访问。属性:clsid、creation_time、fixed_length_properties、modified_time、name、property_header_kind,以及另外 6 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
name | str | 读写 | 获取或设置名称。 |
role | str | 读写 | 获取或设置角色。 |
clsid | bytes | 读写 | 获取或设置 clsid。 |
state_bits | int | 读写 | 获取或设置状态位。 |
creation_time | int | 读写 | 获取或设置创建时间。 |
modified_time | int | 读写 | 获取或设置修改时间。 |
streams | list[MsgStream] | 读写 | 获取或设置流。 |
storages | list["MsgStorage"] | 读写 | 获取或设置存储。 |
property_header_kind | `str | None` | 读写 |
property_stream_header | `PropertyStreamHeaderTopLevel | PropertyStreamHeaderSubobject | None` |
fixed_length_properties | tuple[PropertyEntryFixedLength, ...] | 读写 | 获取或设置固定长度属性。 |
property_stream_parse_error | `str | None` | 读写 |
方法
| 签名 | 描述 |
|---|---|
add_stream(stream: MsgStream) → MsgStream | 向存储节点添加一个 MsgStream,允许在 MSG 文件中包含自定义流 |
add_storage(storage: "MsgStorage") → "MsgStorage" | 向此存储添加一个子 MsgStorage 并返回它 |
iter_streams() → Iterator[MsgStream] | 返回此存储中所有 MsgStream 对象的迭代器 |
iter_storages() → Iterator["MsgStorage"] | 返回所有子 MsgStorage 对象的迭代器 |
find_stream(name: str) → `MsgStream | None` |
find_storage(name: str) → `“MsgStorage” | None` |