ExchangeServiceBinding.CopyItem Method
The CopyItem method sends the request to and gets the response from a CopyItem operation.
Namespace: ExchangeWebServices
Assembly: EWS (in EWS.dll)
Syntax
'Declaration
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use := SoapBindingUse.Literal, _
ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
Public Function CopyItem ( _
CopyItem1 As CopyItemType _
) As CopyItemResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim CopyItem1 As CopyItemType
Dim returnValue As CopyItemResponseType
returnValue = instance.CopyItem(CopyItem1)
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use = SoapBindingUse.Literal,
ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
public CopyItemResponseType CopyItem(
CopyItemType CopyItem1
)
Parameters
- CopyItem1
Type: ExchangeWebServices.CopyItemType
An instance of the CopyItemType class that represents the items to copy and the destination folder that contains the copies.
Return Value
Type: ExchangeWebServices.CopyItemResponseType
The CopyItem method returns a CopyItemResponseType object that contains the status of the CopyItem operation and the identifiers of the new items.
See Also