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

保存父对象的实例时发生; 可以是显式保存 (例如, 使用**Save** 或**SaveAs** 方法), 也可以是隐式保存 (例如, 关闭项目的检查器时为了响应提示而进行的保存)。Occurs when an instance of the parent object is saved, either explicitly (for example, using the Save or SaveAs methods) or implicitly (for example, in response to a prompt when closing the item's inspector).

语法Syntax

expressionexpression. Write( _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 save operation is not completed.

说明Remarks

在 Microsoft Visual Basic 脚本版本 (VBScript) 中, 如果将此函数的返回值设置为False, 则不完成保存操作。In Microsoft Visual Basic Scripting Edition (VBScript), if you set the return value of this function to False, the save operation is not completed.

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