Exchange Web Services .NET Class Library
Exchange Web Services .NET Class Library
Exchange Web Services .NET
Independentsoft.Exchange
Service Class
Service Methods
GetAttachment Method
GetAttachment Method (String)
GetAttachment Method (AttachmentInfo)
GetAttachment Method (String, AttachmentShape)
GetAttachment Method (AttachmentInfo, AttachmentShape)

# Service GetAttachment Method (AttachmentInfo, AttachmentShape)

Retrieve existing attachment.

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

    public Attachment GetAttachment(
    	AttachmentInfo attachmentInfo,
    	AttachmentShape attachmentShape
    )

    Public Function GetAttachment (
    	attachmentInfo As AttachmentInfo,
    	attachmentShape As AttachmentShape
    ) As Attachment

#### Parameters

attachmentInfo
  Type: Independentsoft.Exchange
  AttachmentInfo
  The ID of attachment to return.
attachmentShape
  Type: Independentsoft.Exchange
  AttachmentShape
  Specify which attachment information should be returned.

#### Return Value

Type: Attachment
Attachment.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | attachmentInfo

See Also

#### Reference

Service Class
GetAttachment Overload
Independentsoft.Exchange Namespace

Copyright 2025 Independentsoft

Send comments on this topic to support@independentsoft.de