Compartilhar via


_Conversation.StopAlwaysDelete Method

Stops the action of always moving conversation items in the specified store to the Deleted Items folder in that store.

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

Syntax

'Declaration
<DispIdAttribute()> _
Sub StopAlwaysDelete ( _
    Store As Store _
)
'Usage
Dim instance As _Conversation
Dim Store As Store

instance.StopAlwaysDelete(Store)
[DispIdAttribute()]
void StopAlwaysDelete(
    Store Store
)

Parameters

Remarks

If the always-delete action has not been turned on (by calling the SetAlwaysDelete(OlAlwaysDeleteConversation, Store) method), StopAlwaysDelete does nothing.

If the always-delete action has been turned on, StopAlwaysDelete moves existing conversation items in the Deleted Items folder to the Inbox.

After calling the StopAlwaysDelete method for a conversation in a store, calling the GetAlwaysDelete(Store) method on that conversation and store returns the constant olDoNotDelete.

If the store specified by the Store parameter represents a non-delivery store such as an archive .pst store, the stop-always-delete action is applied to conversation items in the default delivery store.

Calling this method on a conversation that is already in the Deleted Items folder in the specified store returns an error.

See Also

Reference

_Conversation Interface

_Conversation Members

Microsoft.Office.Interop.Outlook Namespace