EmailMessage.Attachments Property
The Attachments property gets the set of attachments from the message.
Namespace: Microsoft.Exchange.Data.Transport.Email
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public ReadOnly Property Attachments As AttachmentCollection
Get
'Usage
Dim instance As EmailMessage
Dim value As AttachmentCollection
value = instance.Attachments
public AttachmentCollection Attachments { get; }
Property Value
Type: Microsoft.Exchange.Data.Transport.Email.AttachmentCollection
Remarks
If you add or remove attachments or bodies from a signed e-mail message, the signature will be removed from the message. To retain the digital signature, we recommend that you create a new message that wraps the signed message by adding the signed message as an attachment to the new message.