Export (0) Print
Expand All

Installing and Referencing the Outlook 2007 PIA

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You must first install the Outlook 2007 Primary Interop Assembly (PIA) in the Global Assembly Cache (GAC) before you can incorporate information from the PIA in an Outlook managed add-in. You can do so by choosing the Typical installation of Office and then adding .NET Programmability Support for Outlook.

To add .NET Programmability Support for Outlook after Outlook is installed

  1. In Control Panel, click Add or Remove Programs.

  2. Select your installation of Office and click Change.

  3. Select Add or Remove Features.

  4. Click Continue.

  5. In the Installation Options tab, click the '+' to expand the application for which you want to install the PIA.

  6. Click the drop-down arrow adjacent to .NET Programmability Support and select Run from My Computer.

After installation, if you are using Visual Studio to create the managed project, you can add a reference to the Microsoft Outlook 12.0 Object Library component. Subsequently, in the object browser, under the Microsoft.Office.Interop.Outlook namespace, you can see managed interfaces in the PIA that have names corresponding to objects in the Outlook object model.

For information about other ways to install the PIA for Office, see How to: Install Office Primary Interop Assemblies.

Show:
© 2014 Microsoft