Поделиться через


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)

Syntax

'Declaration
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("https://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)
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("MailboxCulture")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/DeleteAttachment", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("ExchangeImpersonation")]
public DeleteAttachmentResponseType DeleteAttachment(
    DeleteAttachmentType DeleteAttachment1
)

Parameters

Return Value

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