Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateAttachmentType Class
Collapse the table of content
Expand the table of content

CreateAttachmentType Class

.NET Framework 3.5

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents a request to attach an item or file to a specified item in the Exchange database.

Namespace:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

public ref class CreateAttachmentType : public BaseRequestType

You cannot attach an existing item to another item. To attach the contents of an existing item, pass the MimeContent of the existing item to the attachment that you want to create. Make sure that you null out all properties that are returned for an existing item. Only the Multipurpose Internet Mail Extensions (MIME) content should be used in the attachment. If you try to attach an existing item to another item, the response will contain an error because the Exchange database cannot include duplicate item identifiers.

For the full documentation on the types in the Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007 namespace, see the Microsoft Exchange Server 2007 SDK in the MSDN Library.


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

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5

Community Additions

© 2015 Microsoft