Share via


ExchangeServiceBinding.GetAttachment Method

Retrieves existing attachments on items in the Microsoft Exchange Server 2007 data store.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/GetAttachment", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetAttachment ( _
    GetAttachment1 As GetAttachmentType _
) As GetAttachmentResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim GetAttachment1 As GetAttachmentType
Dim returnValue As GetAttachmentResponseType

returnValue = instance.GetAttachment(GetAttachment1)
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("SerializedSecurityContext")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/GetAttachment", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
public GetAttachmentResponseType GetAttachment(
    GetAttachmentType GetAttachment1
)

Parameters

Return Value

Type: Microsoft.SharePoint.Portal.WebControls.GetAttachmentResponseType
An object representing the attachment to retrieve.

See Also

Reference

ExchangeServiceBinding Class

ExchangeServiceBinding Members

Microsoft.SharePoint.Portal.WebControls Namespace