概述
mapi_attachment 是 CPP 的 Aspose.Email 中的一个类.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|
filename | std::string | 阅读/写作 | 存储附件的文件名 |
data | std::vector<std::uint8_t> | 阅读/写作 | 包含附件的原始字节内容. |
mime_type | std::string | 阅读/写作 | |
content_id | std::string | 阅读/写作 | 包含附件内容标识符. |
embedded_message | std::shared_ptr<mapi_message> | 阅读/写作 | 提供嵌入 mapi_message 的访问,如果有任何信息. |
properties | mapi_property_collection | 阅读/写作 | |
方法
| Signature | 描述情况 |
|---|
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string) → mapi_attachment | |
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string) → mapi_attachment | |
load_data(stream: std::istream) | 从给定的输入流读取附件数据进入对象 |
is_embedded_message() → bool | |