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
| Name | Type | Access | Description |
|---|---|---|---|
filename | std::string | Read/Write | Stores the attachment’s file name |
data | std::vector<std::uint8_t> | Read/Write | Holds the attachment’s raw byte content |
mime_type | std::string | Read/Write | Stores the attachment’s MIME type string. |
content_id | std::string | Read/Write | Stores the attachment’s content identifier. |
embedded_message | std::shared_ptr<mapi_message> | Read/Write | Holds an embedded message attachment. |
properties | mapi_property_collection | Read/Write | Gets the collection of MAPI properties for this attachment. |
méthodes
| Signature | Description |
|---|---|
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string) → mapi_attachment | Creates an attachment from raw byte data. |
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string) → mapi_attachment | Creates 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() → bool | Returns true if the attachment is an embedded message. |
Voir aussi
- Aspose.Email pour C++ — Enterprise API Reference