Share via


SharePoint Development Samples

This section contains sample applications that demonstrate how to use the SharePoint development tools in Visual Studio. For example, you can create SharePoint workflows that manage the life cycle of documents and list items in a SharePoint Web site.

The code in these samples illustrates the syntax, structure, and techniques used to build SharePoint solutions.

Locating Sample Files

To access samples from Visual Studio

  1. On the Help menu, click Samples.

  2. In the Samples on Disk section of the readme file, click local Samples folder. By default, the samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\1033 or drive:\Program Files (x86)\Microsoft Visual Studio 10.0\Samples\1033.

  3. Right-click the .zip file that contains the samples you want to open and then click Extract All to extract the samples to a folder of your choice.

For the most current samples, see the SharePoint Development in Visual Studio 2010 Samples Web site.

Security noteSecurity Note

Microsoft provides the included samples "AS IS" with no warranties. The code in the samples is provided just to illustrate concepts. The provided code may not meet security requirements for any specific environment. We recommend that you add security and error-handling code to your projects to make them as secure and robust as you deem appropriate.

SharePoint Development Samples

Sample

Description

SharePoint 2007 Sequential Workflow

Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.

SharePoint 2010 Sequential Workflow

Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.

Business Data Connectivity Samples

Shows how to use custom Business Data Catalog types in a SharePoint project.

Visual Web Part

Shows how to create an ASP.NET Web part that can be used in SharePoint.

List with Event Receiver

Demonstrates how to use a list definition, list instance, content type, event receiver, visual Web part, LINQ to SharePoint, and Package Designer to create an equipment lending library based on SharePoint 2010.

Custom Action Project Item

Demonstrates how to add a new SharePoint Project Extension using the SharePoint project extensibility APIs that are part of Visual Studio 2010.

See Also

Concepts

Common Tasks in Office Programming

Other Resources

Visual Studio 2010 Samples