ItemEvents_10_BeforeAttachmentAddEventHandler 委托

定义

这是针对相应对象中的事件的委派。 在对事件实现回调方法后,使用此委派将回调方法连接到该事件。 如果存在多个版本的事件接口,此委派将为指定版本的 Outlook 中的事件连接回调方法。

public delegate void ItemEvents_10_BeforeAttachmentAddEventHandler(Attachment ^ Attachment, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ItemEvents_10_BeforeAttachmentAddEventHandler(Attachment Attachment, out bool Cancel);
Public Delegate Sub ItemEvents_10_BeforeAttachmentAddEventHandler(Attachment As Attachment, ByRef Cancel As Boolean)

参数

Attachment
Attachment

附件 添加到项目。

Cancel
Boolean

设置为 True 以取消操作;否则,设置为 False 以允许添加 附件

属性

适用于