mapi_attachment

mapi_attachment

Overview

mapi_attachment เป็นคลาสใน Aspose.Email FOSS สําหรับ C++.

Description

mapi_attachment เป็นคลาสในห้องสมุด Aspose.Email FOSS สําหรับ C++ ที่เปิดเผย 4 วิธีและ 6 คุณลักษณะสําหรับการใช้งานโปรแกรม.

ความสามารถหลัก ประกอบด้วย: std::string; std::vector<std::uint8_t>; std::string.การปฏิบัติงานเหล่านี้ทําให้ผู้พัฒนาสามารถรวมฟังก์ชัน mapi_attachment ได้โดยตรงกับแอปลิเคชั่น C++ .

Properties

NameTypeAccessDescription
filenamestd::stringอ่าน/เขียนเก็บชื่อไฟล์ของเอกสารแนบ
datastd::vector<std::uint8_t>อ่าน/เขียนเก็บเนื้อหาไบต์ที่ไม่ถูกติดต่อของเอกสารยึด
mime_typestd::stringอ่าน/เขียนเก็บรหัส MIME ของเอกสารยึดไว้.
content_idstd::stringอ่าน/เขียนเก็บตัวรับรองเนื้อหาของเอกสารยึดไว้.
embedded_messagestd::shared_ptr<mapi_message>อ่าน/เขียนมีข้อความติดต่อที่อยู่ในตัว.
propertiesmapi_property_collectionอ่าน/เขียนได้รับการรวบรวมของคุณสมบัติ MAPI สําหรับเติมนี้.

Methods

SignatureDescription
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 หากการติดต่อเป็นข้อความที่บูรณาการ.

See Also

 ภาษาไทย