mapi_attachment

mapi_attachment

Vue de l’ensemble

‘mapi_attachment’ est une classe dans Aspose.Email FOSS pour C++.

Description

‘mapi_attachment’ est une classe dans la bibliothèque Aspose.Email FOSS pour C++ qui expose 4 méthodes et 6 propriétés pour l’utilisation programmée.

Les capacités de base comprennent : std::string; td ::vector<stD::uint8_t> ; sd_strin. Ces opérations permettent aux développeurs d’intégrer la fonctionnalité mapi_attachment directement dans les applications C++.

Propriétés

NameTypeAccessDescription
filenamestd::stringRead/WriteStores the attachment’s file name
datastd::vector<std::uint8_t>Read/WriteHolds the attachment’s raw byte content
mime_typestd::stringRead/WriteStores the attachment’s MIME type string.
content_idstd::stringRead/WriteStores the attachment’s content identifier.
embedded_messagestd::shared_ptr<mapi_message>Read/WriteHolds an embedded message attachment.
propertiesmapi_property_collectionRead/WriteGets the collection of MAPI properties for this attachment.

méthodes

SignatureDescription
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string)mapi_attachmentCreates an attachment from raw byte data.
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string)mapi_attachmentCreates an attachment by reading from an input stream.
load_data(stream: std::istream)Reads attachment content from the given input stream into the object
is_embedded_message()boolReturns true if the attachment is an embedded message.

Voir aussi

  • Aspose.Email pour C++ — Enterprise API Reference
 Français