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

与项目(父对象的一个实例)相关的检查器关闭时发生。Occurs when the inspector associated with an item (which is an instance of the parent object) is being closed.


表达式关闭(取消)expression.Close (Cancel)

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


名称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 close operation is not completed and the inspector is left open.


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

如果使用**close** 方法触发此事件, 则只有当Close方法使用olPromptForSave参数时才能取消此事件。If you use the Close method to fire this event, it can only be canceled if the Close method uses the olPromptForSave argument.

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