次の方法で共有


PostItem.BeforeCheckNames Event (Outlook)

Occurs just before Microsoft Outlook starts resolving names in the recipient collection for an item (which is an instance of the parent object).

Syntax

expression .BeforeCheckNames(Cancel)

expression A variable that represents a PostItem object.

Parameters

Name

Required/Optional

Data Type

Description

Cancel

Required

Boolean

False when the event occurs. If the event procedure sets this argument to True, the name resolution process is not completed.

Remarks

You use the BeforeCheckNames event in VBScript, but the event does not fire when an e-mail 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.

  • You customized any type of form and Outlook automatically resolved the name in the background.

  • You programmatically created and resolved a recipient.

See Also

Concepts

PostItem Object Members

PostItem Object