This documentation is archived and is not being maintained.

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)

public AttachmentCollection Attachments { get; }

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.