_Conversation.SetAlwaysMoveToFolder Method

Sets a Folder object that indicates the folder to which all existing conversation items and new items that arrive in the conversation are always moved.

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

void SetAlwaysMoveToFolder(
	MAPIFolder MoveToFolder,
	Store Store


Type: Microsoft.Office.Interop.Outlook.MAPIFolder

Specifies the folder to which all existing items and new items that arrive in the conversation are always moved.

Type: Microsoft.Office.Interop.Outlook.Store

A Store object that represents the store that contains the folder to which items of the conversation are moved.

The SetAlwaysMoveToFolder method operates on conversation items in the delivery store specified by the Store parameter. If the Store parameter represents a non-delivery store such as an archive .pst store, the move action will apply to conversation items in the default delivery store.

If the MoveToFolder parameter specifies an invalid folder that does not exist, has been moved, or is read-only, Outlook will raise an error.

To stop the always-move-to-folder action for conversations items in a store, call the StopAlwaysMoveToFolder(Store) method


Setting the Deleted Items folder as the MoveToFolder parameter in SetAlwaysMoveToFolder is not equivalent to calling SetAlwaysDelete(OlAlwaysDeleteConversation, Store) on the same store and conversation. Setting the MoveToFolder parameter to the Deleted Items folder results in the GetAlwaysDelete(Store) method returning the value olDoNotDelete.

The BeforeItemMove event of the Folder object occurs when you call SetAlwaysMoveToFolder.