Jaa


ExchangeServiceBinding.CreateAttachment Method

The CreateAttachment method sends the request to and gets the response from a CreateAttachment operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateAttachment", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TimeZoneContext")> _
Public Function CreateAttachment ( _
    CreateAttachment1 As CreateAttachmentType _
) As CreateAttachmentResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim CreateAttachment1 As CreateAttachmentType
Dim returnValue As CreateAttachmentResponseType

returnValue = instance.CreateAttachment(CreateAttachment1)
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateAttachment", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TimeZoneContext")]
public CreateAttachmentResponseType CreateAttachment(
    CreateAttachmentType CreateAttachment1
)

Parameters

Return Value

Type: ExchangeWebServices.CreateAttachmentResponseType
The CreateAttachment method returns a CreateAttachmentType object that contains the status of the CreateAttachment operation.