MapiAttachment
Panoramica
MapiAttachment è una classe in Aspose.Email FOSS per Python.
Oggetto allegato mutabile.
Questa classe fornisce 3 metodi per lavorare con oggetti MapiAttachment nei programmi Python. I metodi disponibili includono: from_bytes, from_embedded_message, set_property. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo aver installato il pacchetto Aspose.Email FOSS per Python. Proprietà: attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name, e altre 9.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
storage_name | `str | None` | Lettura |
is_embedded_message | bool | Lettura | Ottiene il messaggio incorporato. |
is_storage_attachment | bool | Lettura | Ottiene l’allegato di archiviazione. |
embedded_storage_name | `str | None` | Lettura |
filename | `str | None` | Lettura/Scrittura |
data | bytes | Lettura/Scrittura | Ottiene o imposta i dati. |
mime_type | `str | None` | Lettura/Scrittura |
content_id | `str | None` | Lettura/Scrittura |
attach_method | int | Lettura/Scrittura | Ottiene o imposta il metodo di allegato. |
storage_id | `int | None` | Lettura/Scrittura |
embedded_message | `“MapiMessage | None”` | Lettura/Scrittura |
custom_storage | `MsgStorage | None` | Lettura/Scrittura |
properties | MapiPropertyCollection | Lettura/Scrittura | Ottiene o imposta le proprietà. |
extra_streams | list[MsgStream] | Lettura/Scrittura | Ottiene o imposta i flussi aggiuntivi. |
header_reserved_0 | bytes | Lettura/Scrittura | Ottiene o imposta l’intestazione riservata 0. |
Metodi
| Firma | Descrizione |
|---|---|
| `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 |