mapi_attachment

mapi_attachment

概述

mapi_attachment 是 C++ 的 FOSS 中的 Aspose.Email 类.

描述情况

mapi_attachment 是 C++ 的 Aspose.Email FOSS 库中的一个类,它显示了 4 种方法和 6 个属性用于编程.

核心能力包括: std::string; std::vector<std::uint8_t>; std::string.这些操作使开发人员能够直接将 mapi_attachment 功能集成到 C++ 应用程序中.

属性

名称:类型Access描述情况
filenamestd::string阅读/写作存储附件的文件名
datastd::vector<std::uint8_t>阅读/写作包含附件的原始字节内容.
mime_typestd::string阅读/写作存储附件的MIME类型字符串.
content_idstd::string阅读/写作存储附件的内容标识符.
embedded_messagestd::shared_ptr<mapi_message>阅读/写作持有嵌入式消息附件.
propertiesmapi_property_collection阅读/写作获得此附件的MAPI属性集合.

方法

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如果附件是嵌入式消息,则返回true.

另请参阅

 中文