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

在**检查器** 中打开父对象的实例时发生。Occurs when an instance of the parent object is being opened in an Inspector.

语法Syntax

表达式打开(取消)expression.Open (Cancel)

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

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
CancelCancel 必需Required BooleanBoolean (不使用在 VBScript 中)。(Not used in VBScript). 的事件发生时。False when the event occurs. 如果事件过程将此参数设置为 True ,则不完成打开操作并且不显示检查器。If the event procedure sets this argument to True, the open operation is not completed and the inspector is not displayed.

说明Remarks

发生此事件时, 将初始化检查器对象, 但还未显示。When this event occurs, the Inspector object is initialized but not yet displayed. Open 事件 Read 事件的不同之处在于 发生,每当用户在支持单元格内编辑或者在检查器中打开该项目时的视图中选择该项目。The Open event differs from the Read event in that Read occurs whenever the user selects the item in a view that supports in-cell editing as well as when the item is being opened in an inspector.

在 Microsoft Visual Basic 脚本版本 (VBScript) 中, 如果将此函数的返回值设置为False, 则不完成打开操作, 并且不显示检查器。In Microsoft Visual Basic Scripting Edition (VBScript), if you set the return value of this function to False, the open operation is not completed and the inspector is not displayed.

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