Exchange Web Services .NET Class Library
Exchange Web Services .NET Class Library
Exchange Web Services .NET
Independentsoft.Exchange
Service Class
Service Methods
CreateAttachment Method
CreateAttachment Method (Attachment, ItemId)
CreateAttachment Method (Attachment, String)
CreateAttachment Method (IList(Attachment), ItemId)
CreateAttachment Method (IList(Attachment), String)

# Service CreateAttachment Method (Attachment, ItemId)

Creates either an item or file attachment and attaches it to the specified item.

Namespace: Independentsoft.Exchange
Assembly: Independentsoft.Exchange (in Independentsoft.Exchange.dll) Version: 3.0.840.11238
Syntax
C#
VB
Copy

    public AttachmentId CreateAttachment(
    	Attachment attachment,
    	ItemId itemId
    )

    Public Function CreateAttachment (
    	attachment As Attachment,
    	itemId As ItemId
    ) As AttachmentId

#### Parameters

attachment
  Type: Independentsoft.Exchange
  Attachment
  The attachment to create.
itemId
  Type: Independentsoft.Exchange
  ItemId
  The parent item to attach attachment to.

#### Return Value

Type: AttachmentId
The identifier of the parent item.
See Also

#### Reference

Service Class
CreateAttachment Overload
Independentsoft.Exchange Namespace

Copyright 2025 Independentsoft

Send comments on this topic to support@independentsoft.de