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

预览与父对象的实例相关的附件前发生。Occurs before an attachment associated with an instance of the parent object is previewed.

语法Syntax

expressionexpression. BeforeAttachmentPreview( _Attachment_ , _Cancel_ )

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

参数Parameters

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

备注Remarks

此事件在某附件被预览(从活动浏览器的阅读窗格中的附件区中预览,或从活动检查器中预览)之前发生。This event occurs before an attachment is previewed, either from the attachment strip in the Reading Pane of the active explorer or from the active inspector.

另请参阅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.