Platform SDK: CDO 1.2.1

MoveTo Method (Folder Object)

The MoveTo method relocates the Folder object to another folder hierarchy location.

Syntax

Set objMovedFolder = objFolder.MoveTo(folderID [, storeID ] )

objMovedFolder
On successful return, contains the moved Folder object.
objFolder
Required. This Folder object.
folderID
Required. String. The unique identifier of the new parent Folder object, that is, the Folder object under which this folder is to appear as a subfolder.
storeID
Optional. String. The unique identifier of the InfoStore object in which this folder is to appear, if different from its current InfoStore.

Remarks

All subfolders of this folder, together with all Message objects contained within this folder and its subfolders, are moved along with the folder itself.

The move operation takes effect immediately. This Folder object is no longer accessible at its former location after the MoveTo method returns.