MapiAttachment

Overview

MapiAttachment 是Python的Aspose.Email FOSS中的一个类.

变异性附属物体.

这个类提供了在Python程序中使用MapiAttachment 对象的3种方法. 有的方法包括: from_bytes, from_embedded_message, set_property. 在安装Python包的Aspose.Email FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name,另外9个.

Properties

NameTypeAccessDescription
storage_name`strNone`Read
is_embedded_messageboolRead得到了嵌入式消息.
is_storage_attachmentboolRead得到的是存储附件.
embedded_storage_name`strNone`Read
filename`strNone`阅读/写作
databytes阅读/写作获取或设置数据.
mime_type`strNone`阅读/写作
content_id`strNone`阅读/写作
attach_methodint阅读/写作获取或设置附加方法.
storage_id`intNone`阅读/写作
embedded_message`“MapiMessageNone”`阅读/写作
custom_storage`MsgStorageNone`阅读/写作
propertiesMapiPropertyCollection阅读/写作获得或设置属性.
extra_streamslist[MsgStream]阅读/写作获得或设置额外的流量.
header_reserved_0bytes阅读/写作得到或设置头值为0.

Methods

SignatureDescription
`from_bytes(filename: str, data: bytes, mime_type: strNone, content_id: str
`from_embedded_message(message: “MapiMessage”, filename: strNone, mime_type: str
`set_property(property_id: intCommonMessagePropertyId

See Also

 中文