MapiAttachment
Vue de l’ensemble
‘MapiAttachment’ est une classe dans Aspose.Email FOSS pour .NET.
MapiAttachment.FromBytes crée un annexe à partir d’un nom de fichier, d’une gamme de bytes, du type MIME facultatif et de l’ID contenu.
Description
‘MapiAttachment’ est une classe dans la bibliothèque Aspose.Email FOSS pour .NET qui expose 4 méthodes et 8 propriétés pour l’utilisation programmée.
La classe fournit également la propriété ‘Properties’ (prouve la collecte des propriétés de cartes associées à l’annexe), la «IsEmbeddedMessage» (indique si l’annex contient un message intégré), le «IStorageAttachment» propriétaire (indice si le annex est une attachement stockage (ole).
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Filename | string? | Read/Write | Gets or sets the attachment’s file name |
Data | byte[] | Read/Write | Gets or sets the raw byte content of the attachment |
MimeType | string? | Read/Write | Gets or sets the MIME type of the attachment |
ContentId | string? | Read/Write | Gets or sets the content identifier for inline attachments |
EmbeddedMessage | MapiMessage? | Read/Write | Gets or sets an embedded MapiMessage if the attachment is a message |
Properties | MapiPropertyCollection | Read | Provides the collection of MAPI properties associated with the attachment |
IsEmbeddedMessage | bool | Read | Indicates whether the attachment contains an embedded message |
IsStorageAttachment | bool | Read | Indicates whether the attachment is a storage (OLE) attachment |
méthodes
| Signature | Description |
|---|---|
FromBytes(filename: string, data: byte[], mimeType: string?, contentId: string?) | Creates an attachment from a filename, byte array, optional MIME type and content ID |
FromStream(filename: string, stream: Stream, mimeType: string?, contentId: string?) | |
LoadData(stream: Stream) | Loads attachment binary data from the given stream into the attachment |
OpenRead() | Returns a readable stream for the attachment’s data |
Voir aussi
- Aspose.Email pour .NET — Enterprise API Reference
- Aspose.Email pour .NET — Enterprise API Reference