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
public AttachmentCollection Attachments { get; }
public:
property AttachmentCollection^ Attachments {
    AttachmentCollection^ get ();
}
/** @property */
public AttachmentCollection get_Attachments ()
public function get Attachments () : 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003