MapiAttachment
Genel Bakış
MapiAttachment Python için FOSS’de bir sınıf.
Değişken bir bağlama nesnesi.
Bu sınıf, Python programlarında MapiAttachment nesnelerle çalışmak için 3 yöntem sağlar. Kullanılabilir yöntemler şunlardır: from_bytes, from_embedded_message, set_property. Python için FOSS paketini yükledikten sonra tüm kamu üyeleri herhangi bir Python uygulamasına erişilebilir. Özellikleri: attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name,Ve 9 tane daha.
Özellikler
| Adı: | Tip: | Access | Açıklama: |
|---|---|---|---|
storage_name | `str | None` | Oku . |
is_embedded_message | bool | Oku . | Alır is embedded message. |
is_storage_attachment | bool | Oku . | is storage attachment’ı alır. |
embedded_storage_name | `str | None` | Oku . |
filename | `str | None` | Okuma/Yazma |
data | bytes | Okuma/Yazma | Veriyi alır veya ayarlar. |
mime_type | `str | None` | Okuma/Yazma |
content_id | `str | None` | Okuma/Yazma |
attach_method | int | Okuma/Yazma | Ekleme yöntemini alır veya ayarlar. |
storage_id | `int | None` | Okuma/Yazma |
embedded_message | `“MapiMessage | None”` | Okuma/Yazma |
custom_storage | `MsgStorage | None` | Okuma/Yazma |
properties | MapiPropertyCollection | Okuma/Yazma | Özellikleri alır veya ayarlar. |
extra_streams | list[MsgStream] | Okuma/Yazma | Ek akışları alır veya ayarlar. |
header_reserved_0 | bytes | Okuma/Yazma | Başlıkta ayrılmış 0’ı alır veya ayarlar. |
Yöntemler
| Signature | Açıklama: |
|---|---|
| `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 |