_Conversation.SetAlwaysDelete(OlAlwaysDeleteConversation, Store) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a setting for the specified delivery store that indicates whether all existing items and all new items that arrive in the conversation are always moved to the Deleted Items folder in the specified delivery store.
public:
void SetAlwaysDelete(Microsoft::Office::Interop::Outlook::OlAlwaysDeleteConversation AlwaysDelete, Microsoft::Office::Interop::Outlook::Store ^ Store);
public void SetAlwaysDelete (Microsoft.Office.Interop.Outlook.OlAlwaysDeleteConversation AlwaysDelete, Microsoft.Office.Interop.Outlook.Store Store);
Parameters
- AlwaysDelete
- OlAlwaysDeleteConversation
An OlAlwaysDeleteConversation constant that indicates whether all existing and new items that arrive in the conversation are always moved to the Deleted Folder of the store specified by the Store
parameter.
- Store
- Store
A Store object that represents the store that contains the Deleted Items folder to which existing and new items of the conversation are to be moved.
Remarks
The SetAlwaysDelete method operates on conversation items in the delivery store specified by the Store
parameter. If the store specified by the Store
parameter represents a non-delivery store such as an archive .pst store, the action is applied to conversation items in the default delivery store.
If the AlwaysDelete
parameter is olAlwaysDelete, conversation items are moved to the Deleted Items folder for the specified store. In this case, the items are not permanently deleted, unless the user has specified a separate option to permanently delete items when Microsoft Outlook shuts down.
If SetAlwaysDelete returns olDoNotDelete, existing conversation items and new items that arrive in the conversation are not moved to the Deleted Items folder in the specified delivery store, and existing conversation items in the Deleted Items folder are moved to the Inbox.