Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.63 KB

Outlook.AppointmentItem.BeforeAttachmentSave.md

File metadata and controls

44 lines (24 loc) · 1.63 KB
title api_name ms.assetid ms.date ms.localizationpriority
AppointmentItem.BeforeAttachmentSave event (Outlook)
Outlook.AppointmentItem.BeforeAttachmentSave
1add142b-e23a-adb5-66b9-184be82087a1
06/08/2017
medium

AppointmentItem.BeforeAttachmentSave event (Outlook)

Occurs just before an attachment is saved.

Syntax

expression. BeforeAttachmentSave( _Attachment_ , _Cancel_ )

expression A variable that represents an AppointmentItem object.

Parameters

Name Required/Optional Data type Description
Attachment Required Attachment The Attachment to be saved.
Cancel Required Boolean (Not used in VBScript). False when the event occurs. If the event procedure sets this argument to True, the save operation is not completed and the attachment is not changed.

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.

In VBScript, if you set the return value of this function to False, the save operation is cancelled and the attachment is not changed.

See also

AppointmentItem Object

[!includeSupport and feedback]