MapiAttachment

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

NameTypeAccessDescription
Filenamestring?Read/WriteGets or sets the attachment’s file name
Databyte[]Read/WriteGets or sets the raw byte content of the attachment
MimeTypestring?Read/WriteGets or sets the MIME type of the attachment
ContentIdstring?Read/WriteGets or sets the content identifier for inline attachments
EmbeddedMessageMapiMessage?Read/WriteGets or sets an embedded MapiMessage if the attachment is a message
PropertiesMapiPropertyCollectionReadProvides the collection of MAPI properties associated with the attachment
IsEmbeddedMessageboolReadIndicates whether the attachment contains an embedded message
IsStorageAttachmentboolReadIndicates whether the attachment is a storage (OLE) attachment

méthodes

SignatureDescription
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
 Français