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

在 Microsoft Outlook 开始解析项目(父对象的一个实例)的收件人集合中的名称前发生。Occurs just before Microsoft Outlook starts resolving names in the recipient collection for an item (which is an instance of the parent object).


expressionexpression. BeforeCheckNames( _Cancel_ )

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


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
CancelCancel 必需Required BooleanBoolean 的事件发生时。False when the event occurs. 如果事件过程将此参数设置为 True ,则不完成名称解析过程。If the event procedure sets this argument to True, the name resolution process is not completed.


在 VBScript 中使用BeforeCheckNames事件, 但在表单上解析电子邮件名称时不会触发该事件。You use the BeforeCheckNames event in VBScript, but the event does not fire when an email name is resolved on the form.

下列情况不会触发此事件:The event does not fire under the following circumstances:

  • 自定义 "日记条目" 窗体, 然后解析 "联系人" 字段中的联系人。You customized a Journal Entry form and then resolved a contact in the Contacts field.

  • 自定义 "联系人" 窗体, 然后解析 "联系人" 字段中的联系人。You customized a Contact form and then resolved a contact in the Contacts field.

  • 自定义任何类型的窗体,然后 Outlook 自动在后台解析名称。You customized any type of form and Outlook automatically resolved the name in the background.

  • 以编程方式创建和解析收件人。You programmatically created and resolved a recipient.

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