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
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction:=SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
Public Function CopyItem ( _
    CopyItem1 As CopyItemType _
) As CopyItemResponseType
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare)] 
[SoapHeaderAttribute("ExchangeImpersonation")] 
[SoapHeaderAttribute("MailboxCulture")] 
[SoapHeaderAttribute("SerializedSecurityContext")] 
[SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out)] 
[SoapHeaderAttribute("RequestServerVersionValue")] 
public CopyItemResponseType CopyItem (
    CopyItemType CopyItem1
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Bare)] 
[SoapHeaderAttribute(L"ExchangeImpersonation")] 
[SoapHeaderAttribute(L"MailboxCulture")] 
[SoapHeaderAttribute(L"SerializedSecurityContext")] 
[SoapHeaderAttribute(L"ServerVersionInfoValue", Direction=SoapHeaderDirection::Out)] 
[SoapHeaderAttribute(L"RequestServerVersionValue")] 
public:
CopyItemResponseType^ CopyItem (
    CopyItemType^ CopyItem1
)
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare) */ 
/** @attribute SoapHeaderAttribute("ExchangeImpersonation") */ 
/** @attribute SoapHeaderAttribute("MailboxCulture") */ 
/** @attribute SoapHeaderAttribute("SerializedSecurityContext") */ 
/** @attribute SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out) */ 
/** @attribute SoapHeaderAttribute("RequestServerVersionValue") */ 
public CopyItemResponseType CopyItem (
    CopyItemType CopyItem1
)
SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare) 
SoapHeaderAttribute("ExchangeImpersonation") 
SoapHeaderAttribute("MailboxCulture") 
SoapHeaderAttribute("SerializedSecurityContext") 
SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out) 
SoapHeaderAttribute("RequestServerVersionValue") 
public function CopyItem (
    CopyItem1 : CopyItemType
) : CopyItemResponseType

Parameters

  • CopyItem1
    An instance of the CopyItemType class that represents the items to copy and the destination folder that contains the copies.

Return Value

The CopyItem method returns a CopyItemResponseType object that contains the status of the CopyItem operation and the identifiers of the new items.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)