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
| Name | Type | Access | Description |
|---|---|---|---|
storage_name | `str | None` | Read |
is_embedded_message | bool | Read | Nhận được thông điệp được nhúng. |
is_storage_attachment | bool | Read | Gets the là lưu trữ attachment. |
embedded_storage_name | `str | None` | Read |
filename | `str | None` | Đọc / viết |
data | bytes | Đọc / viết | Nhận hoặc đặt dữ liệu. |
mime_type | `str | None` | Đọc / viết |
content_id | `str | None` | Đọc / viết |
attach_method | int | Đọc / viết | Nhận hoặc đặt phương pháp gắn kết. |
storage_id | `int | None` | Đọc / viết |
embedded_message | `“MapiMessage | None”` | Đọc / viết |
custom_storage | `MsgStorage | None` | Đọc / viết |
properties | MapiPropertyCollection | Đọc / viết | Nhận hoặc đặt tài sản. |
extra_streams | list[MsgStream] | Đọc / viết | Nhận hoặc đặt các dòng chảy bổ sung. |
header_reserved_0 | bytes | Đọc / viết | Nhận hoặc đặt tiêu đề được bảo lưu 0. |
Methods
| Signature | Description |
|---|---|
| `from_bytes(filename: str, data: bytes, mime_type: str | None, content_id: str |
| `from_embedded_message(message: “MapiMessage”, filename: str | None, mime_type: str |
| `set_property(property_id: int | CommonMessagePropertyId |