Compartir a través de


_Conversation.SetAlwaysDelete Method

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.

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

Syntax

'Declaration
<DispIdAttribute()> _
Sub SetAlwaysDelete ( _
    AlwaysDelete As OlAlwaysDeleteConversation, _
    Store As Store _
)
'Usage
Dim instance As _Conversation
Dim AlwaysDelete As OlAlwaysDeleteConversation
Dim Store As Store

instance.SetAlwaysDelete(AlwaysDelete, _
    Store)
[DispIdAttribute()]
void SetAlwaysDelete(
    OlAlwaysDeleteConversation AlwaysDelete,
    Store Store
)

Parameters

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.

See Also

Reference

_Conversation Interface

_Conversation Members

Microsoft.Office.Interop.Outlook Namespace