MapiAttachment
개요
MapiAttachment은 Aspose.Email FOSS for Python에 있는 클래스입니다.
가변 첨부 객체.
이 클래스는 Python 프로그램에서 MapiAttachment 객체를 다루기 위한 3개의 메서드를 제공합니다. 사용 가능한 메서드에는 from_bytes, from_embedded_message, set_property가 포함됩니다. 모든 public 멤버는 Aspose.Email FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다. 속성: attach_method, content_id, custom_storage, data, embedded_message, embedded_storage_name, 그리고 9개 더.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
storage_name | `str | None` | 읽기 |
is_embedded_message | bool | 읽기 | 임베드된 메시지를 가져옵니다. |
is_storage_attachment | bool | 읽기 | 스토리지 첨부 파일인지 여부를 가져옵니다. |
embedded_storage_name | `str | None` | 읽기 |
filename | `str | None` | 읽기/쓰기 |
data | bytes | 읽기/쓰기 | 데이터를 가져오거나 설정합니다. |
mime_type | `str | None` | 읽기/쓰기 |
content_id | `str | None` | 읽기/쓰기 |
attach_method | int | 읽기/쓰기 | 첨부 방법을 가져오거나 설정합니다. |
storage_id | `int | None` | 읽기/쓰기 |
embedded_message | `“MapiMessage | None”` | 읽기/쓰기 |
custom_storage | `MsgStorage | None` | 읽기/쓰기 |
properties | MapiPropertyCollection | 읽기/쓰기 | 속성을 가져오거나 설정합니다. |
extra_streams | list[MsgStream] | 읽기/쓰기 | 추가 스트림을 가져오거나 설정합니다. |
header_reserved_0 | bytes | 읽기/쓰기 | 헤더 예약 0을 가져오거나 설정합니다. |
메서드
| 시그니처 | 설명 |
|---|---|
| `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 |