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


ExchangeServiceBinding.CopyFolder Method

The CopyFolder method sends the request to and gets the response from a CopyFolder operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CopyFolder", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
Public Function CopyFolder ( _
    CopyFolder1 As CopyFolderType _
) As CopyFolderResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim CopyFolder1 As CopyFolderType
Dim returnValue As CopyFolderResponseType

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

Parameters

Return Value

Type: ExchangeWebServices.CopyFolderResponseType
The CopyFolder method returns a CopyFolderResponseType object that contains the status of the CopyFolder operation and the identifiers of the new folders.