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

当项目(父对象的一个实例)的自定义动作执行时发生。Occurs when a custom action of an item (which is an instance of the parent object) executes.


expressionexpression. CustomAction( _Action_ , _Response_ , _Cancel_ )

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


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
ActionAction 必需Required ObjectObject Action 对象。The Action object.
ResponseResponse 必需Required ObjectObject 由自定义动作产生的新建项目。The newly created item resulting from the custom action.
CancelCancel 必需Required BooleanBoolean (不使用在 VBScript 中)。(Not used in VBScript). 的事件发生时。False when the event occurs. 如果该事件过程将此参数设置为 True ,则不完成该自定义操作。If the event procedure sets this argument to True, the custom action is not completed.


Action对象和由自定义操作产生的新创建的项目将被传递给事件。The Action object and the newly created item resulting from the custom action are passed to the event.

在 Microsoft Visual Basic 脚本版本 (VBScript) 中, 如果将此函数的返回值设置为False, 则不完成自定义操作操作。In Microsoft Visual Basic Scripting Edition (VBScript), if you set the return value of this function to False, the custom action 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.