Compartilhar via


Code Sample: AdventureWorks2008 Declarative Outlook Solution Reusable Components

Applies to: SharePoint Server 2010

The AdventureWorks2008 Declarative Outlook Solution Reusable Components sample enables you to add custom Microsoft Business Connectivity Services (BCS) components to your declarative Microsoft Outlook solution.

The following are the custom components that this sample provides:

  • A custom code action that creates a new Outlook Task based on information from the current Contact item.

  • A custom external data part that displays and enables editing of orders related to the Contact.

  • A custom ribbon manager that gets access to the Outlook application, the current Outlook inspector, and ribbon callbacks.

The base solution for this sample is the AdventureWorks2008 Declarative Outlook sample, which is also part of the SharePoint 2010 SDK.

Prerequisites:

  • Microsoft .NET Framework 3.5 Service Pack 1

  • Microsoft Office Professional Plus 2010

  • Microsoft Visual Studio 2010

  • A declarative Outlook solution (the AdventureWorks2008 Declarative Outlook Solution sample)

Download and use the sample

  1. Download the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.

  2. Extract bcs sample kit.zip from the path ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.

  3. In the folder where you extracted the files, locate the AdventureWorks2008 Declarative Outlook Solution Reusable Components folder and open the Readme.htm file.

  4. Follow the instructions in Readme.htm to use the sample.