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.
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
'Declaration <DispIdAttribute()> _ Sub SetAlwaysMoveToFolder ( _ MoveToFolder As MAPIFolder, _ Store As Store _ ) 'Usage Dim instance As _Conversation Dim MoveToFolder As MAPIFolder Dim Store As Store instance.SetAlwaysMoveToFolder(MoveToFolder, _ Store)
[DispIdAttribute()] void SetAlwaysMoveToFolder( MAPIFolder MoveToFolder, Store Store )
Specifies the folder to which all existing items and new items that arrive in the conversation are always moved.
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.