Platform SDK: CDO 1.2.1

CopyTo Method (Message Object)

The CopyTo method makes a copy of the Message object in another folder.

Syntax

Set objCopiedMessage = objMessage.CopyTo(folderID [, storeID] )

objCopiedMessage
On successful return, contains the copied Message object.
objMessage
Required. This Message object.
folderID
Required. String. The unique identifier of the destination Folder object in which the copy of this message is to appear.
storeID
Optional. String. The unique identifier of the InfoStore object in which the message copy is to appear, if different from this message’s InfoStore.

Remarks

The current version of CDO does not support the CopyTo method on AppointmentItem objects.

All properties that have been set on this message are copied, whether they have read-only or read/write access. Each property is copied with its value and access unchanged.

The copy operation takes effect when you call the Update method on the copied Message object. This allows you to change, for example, the Sent property on the message copy before committing the transaction.

This Message object remains unchanged by the CopyTo method.