This documentation is archived and is not being maintained.

ExchangeServiceBinding.DeleteAttachment Method

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

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

'Declaration
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/exchange/services/2006/messages/DeleteAttachment", Use := SoapBindingUse.Literal,  _
	ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
Public Function DeleteAttachment ( _
	DeleteAttachment1 As DeleteAttachmentType _
) As DeleteAttachmentResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim DeleteAttachment1 As DeleteAttachmentType
Dim returnValue As DeleteAttachmentResponseType

returnValue = instance.DeleteAttachment(DeleteAttachment1)

Parameters

DeleteAttachment1
Type: ExchangeWebServices.DeleteAttachmentType
An instance of the DeleteAttachmentType class that represents the set of attachments to delete.

Return Value

Type: ExchangeWebServices.DeleteAttachmentResponseType
The DeleteAttachment method returns a DeleteAttachmentResponseType object that contains the status of the DeleteAttachment operation.
Show: