次の方法で共有


ItemEvents_10_BeforeAttachmentSaveEventHandler Delegate

This is a delegate for an event in the corresponding object. After implementing a callback method for the event, use this delegate to connect the callback method to the event. If there are multiple versions of the event interface, this delegate connects the callback method for the event in the specified version of Outlook.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
<TypeLibTypeAttribute()> _
Public Delegate Sub ItemEvents_10_BeforeAttachmentSaveEventHandler ( _
    Attachment As Attachment, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ItemEvents_10_BeforeAttachmentSaveEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
[TypeLibTypeAttribute()]
public delegate void ItemEvents_10_BeforeAttachmentSaveEventHandler(
    Attachment Attachment,
    out bool Cancel
)

Parameters

  • Cancel
    Type: System.Boolean

    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.

See Also

Reference

Microsoft.Office.Interop.Outlook Namespace

ItemEvents_10_Event.BeforeAttachmentSave