MapiAttachment

Overview

MapiAttachment là một lớp trong Aspose.Email FOSS cho Python.

Mutable attachment đối tượng.

Khóa học này cung cấp 3 phương pháp để làm việc với các đối tượng MapiAttachment trong các chương trình Python. Các phương pháp có sẵn bao gồm: from_bytes, from_embedded_message, set_property. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Email FOSS cho gói Python. Tài sản : attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name,Và 9 nhiều hơn nữa.

Properties

NameTypeAccessDescription
storage_name`strNone`Read
is_embedded_messageboolReadNhận được thông điệp được nhúng.
is_storage_attachmentboolReadGets the là lưu trữ attachment.
embedded_storage_name`strNone`Read
filename`strNone`Đọc / viết
databytesĐọc / viếtNhận hoặc đặt dữ liệu.
mime_type`strNone`Đọc / viết
content_id`strNone`Đọc / viết
attach_methodintĐọc / viếtNhận hoặc đặt phương pháp gắn kết.
storage_id`intNone`Đọc / viết
embedded_message`“MapiMessageNone”`Đọc / viết
custom_storage`MsgStorageNone`Đọc / viết
propertiesMapiPropertyCollectionĐọc / viếtNhận hoặc đặt tài sản.
extra_streamslist[MsgStream]Đọc / viếtNhận hoặc đặt các dòng chảy bổ sung.
header_reserved_0bytesĐọc / viếtNhận hoặc đặt tiêu đề được bảo lưu 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

 Tiếng Việt