_Conversation.GetAlwaysDelete Method

Returns a constant in the OlAlwaysDeleteConversation enumeration that indicates whether all new items that join the conversation are always moved to the Deleted Items folder in the specified delivery store.

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

[DispIdAttribute()]
OlAlwaysDeleteConversation GetAlwaysDelete(
	Store Store
)

Parameters

Store
Type: Microsoft.Office.Interop.Outlook.Store

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

Return Value

Type: Microsoft.Office.Interop.Outlook.OlAlwaysDeleteConversation
A constant from the OlAlwaysDeleteConversation enumeration that indicates whether all new items of the conversation are always moved to the Deleted Items folder of the specified delivery store.

If the Store parameter specifies a non-delivery store such as an archive .pst store, the GetAlwaysDelete method returns a constant from OlAlwaysDeleteConversation that applies to conversation items in the default delivery store. Items on a non-delivery store are not moved to the Deleted Items folder for the default delivery store.

If GetAlwaysDelete returns olAlwaysDelete, items of the conversation are always moved to the Deleted Items folder for the store that contains the items. In a cross-store conversation, items are moved to the Deleted Items folder for the store that contains the items. When GetAlwaysDelete returns olAlwaysDelete, the GetAlwaysMoveToFolder(Store) method returns a Folder object that represents the Deleted Items folder for the default store.

If GetAlwaysDelete returns olAlwaysDeleteUnsupported, the specified store does not support the action of always moving items to the Deleted Items folder of that store.

If GetAlwaysDelete returns olDoNotDelete, new items that arrive in the conversation are not moved to the Deleted Items folder on the specified delivery store, and existing conversation items in the Deleted Items folder are moved to the Inbox.

Show: