ItemEvents_10_Event.BeforeAttachmentSave Event

Occurs just before an attachment is saved.

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

Syntax

'Declaration
Event BeforeAttachmentSave As ItemEvents_10_BeforeAttachmentSaveEventHandler
'Usage
Dim instance As ItemEvents_10_Event
Dim handler As ItemEvents_10_BeforeAttachmentSaveEventHandler

AddHandler instance.BeforeAttachmentSave, handler
event ItemEvents_10_BeforeAttachmentSaveEventHandler BeforeAttachmentSave

Remarks

This event corresponds to when attachments are saved to the messaging store. The BeforeAttachmentSave event occurs just before an attachment is saved when an item is saved. If a user edits an attachment and then saves those changes, the BeforeAttachmentSave event will not occur at that time; instead it will occur when the item itself is later saved. It also does not occur when the attachment is saved on the hard disk using the SaveAsFile method.

See Also

Reference

ItemEvents_10_Event Interface

ItemEvents_10_Event Members

Microsoft.Office.Interop.Outlook Namespace

Microsoft.Office.Interop.Outlook.ItemEvents_10_BeforeAttachmentSaveEventHandler