How to: Programmatically Determine the Current Outlook Item

 

This example uses the Explorer.SelectionChange event to display the name of the current folder and some information about the selected item. The code then displays the selected item.

Applies to: The information in this topic applies to VSTO add-in projects for Outlook. For more information, see Features Available by Office Application and Project Type.

No code example is currently available or this language may not be supported.

This example requires:

  • Appointment, contact, and e-mail items in Microsoft Office Outlook.

Outlook Object Model Overview
How to: Programmatically Retrieve a Folder by Name
How to: Programmatically Search for a Specific Contact

Show: