ContactItem 事件 (Outlook)ContactItem.BeforeAttachmentAdd event (Outlook)

附件添加到父对象的实例前发生。Occurs before an attachment is added to an instance of the parent object.


expressionexpression. BeforeAttachmentAdd( _Attachment_ , _Cancel_ )

_表达式_一个代表ContactItem对象的变量。expression A variable that represents a ContactItem object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
AttachmentAttachment 必需Required AttachmentAttachment 要添加到项目中的附件The Attachment to be added to the item.
CancelCancel 必需Required BooleanBoolean 设置为True以取消操作;否则, 设置为False以允许添加附件Set to True to cancel the operation; otherwise, set to False to allow the Attachment to be added.

另请参阅See also

创建 ContactItem 对象ContactItem Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.