MapiAttachment
Przegląd
MapiAttachment jest klasą w Aspose.Email FOSS dla Python.
Mutowalny obiekt załącznika.
Ta klasa udostępnia 3 metody do pracy z obiektami MapiAttachment w programach Python. Dostępne metody to: from_bytes, from_embedded_message, set_property. Wszyscy publiczni członkowie są dostępni dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.Email FOSS dla Python. Właściwości: attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name oraz 9 innych.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
storage_name | `str | None` | Odczyt |
is_embedded_message | bool | Odczyt | Pobiera wiadomość osadzoną. |
is_storage_attachment | bool | Odczyt | Pobiera załącznik przechowywania IS. |
embedded_storage_name | `str | None` | Odczyt |
filename | `str | None` | Odczyt/zapis |
data | bytes | Odczyt/zapis | Pobiera lub ustawia dane. |
mime_type | `str | None` | Odczyt/zapis |
content_id | `str | None` | Odczyt/zapis |
attach_method | int | Odczyt/zapis | Pobiera lub ustawia metodę załączania. |
storage_id | `int | None` | Odczyt/zapis |
embedded_message | `“MapiMessage | None”` | Odczyt/zapis |
custom_storage | `MsgStorage | None` | Odczyt/zapis |
properties | MapiPropertyCollection | Odczyt/zapis | Pobiera lub ustawia właściwości. |
extra_streams | list[MsgStream] | Odczyt/zapis | Pobiera lub ustawia dodatkowe strumienie. |
header_reserved_0 | bytes | Odczyt/zapis | Pobiera lub ustawia nagłówek zarezerwowany 0. |
Metody
| Sygnatura | Opis |
|---|---|
| `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 |