Share via


ExchangeServiceBinding.CopyItem Method

Copies an item and puts it in another folder.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.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("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
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("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("SerializedSecurityContext")]
public CopyItemResponseType CopyItem(
    CopyItemType CopyItem1
)

Parameters

Return Value

Type: Microsoft.SharePoint.Portal.WebControls.CopyItemResponseType
An object representing an item to copy.

Remarks

This element is contained in the SOAP envelope.

See Also

Reference

ExchangeServiceBinding Class

ExchangeServiceBinding Members

Microsoft.SharePoint.Portal.WebControls Namespace