Share via


MAPIFolder.CopyTo Method

Copies the current folder in its entirety to the destination folder.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function CopyTo ( _
    DestinationFolder As MAPIFolder _
) As MAPIFolder
'Usage
Dim instance As MAPIFolder
Dim DestinationFolder As MAPIFolder
Dim returnValue As MAPIFolder

returnValue = instance.CopyTo(DestinationFolder)
[DispIdAttribute()]
MAPIFolder CopyTo(
    MAPIFolder DestinationFolder
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Outlook.MAPIFolder
A Folder object that represents the new copy of the current folder.

Remarks

Setting the REG_MULTI_SZ value, DisableCrossAccountCopy, in HKCU\Software\Microsoft\Office\14.0\Outlook in the Windows registry has the side effect of disabling this method.

See Also

Reference

MAPIFolder Interface

MAPIFolder Members

Microsoft.Office.Interop.Outlook Namespace