Compartir a través de


ExchangeServiceBinding.DeleteItem Method

The DeleteItem method sends the request to and gets the response from a DeleteItem 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/DeleteItem", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
Public Function DeleteItem ( _
    DeleteItem1 As DeleteItemType _
) As DeleteItemResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim DeleteItem1 As DeleteItemType
Dim returnValue As DeleteItemResponseType

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

Parameters

Return Value

Type: ExchangeWebServices.DeleteItemResponseType
The DeleteItem method returns a DeleteItemResponseType object that contains the status of the DeleteItem operation.