FolderInfoMergeWith Method (FolderInfo, Boolean)

Merges the folder with the folder from another pst. OnItemMoved event is called on both messages and directories.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public void MergeWith(
	FolderInfo sourceFolder,
	bool recursiveHandler
)

Parameters

sourceFolder
Type: Aspose.Email.Storage.PstFolderInfo
The source folder.
recursiveHandler
Type: SystemBoolean
If true, OnItemMoved will be called on all messages, including messages in sub-directories, otherwise OnItemMoved will be called only for messages in the current directory.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrows when the source folder is located in the same pst.
See Also