SharePoint Code Samples

Download SharePoint code samples and applications. New samples are added frequently in JavaScript, C++, C#, and VB.NET.You can also download code samples for other products like Windows 8, Windows Phone, Windows Azure, Office, Silverlight, or explore the Official Visual Studio 2010 C#, VB.NET, and 101 LINQ samples.

Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort By: rss
431 results
cakriwut
All previous example to build custom web services for SharePoint requires modification of SPDisco.aspx. In fact this kind of modification is dangerous and considered as unsupported.
This example answer all question on how to build custom web services for SharePoint correctly.
Featured
C#, XML
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
This sample calls a WCF service from a custom timer job that creates a new announcement when it runs.
(3)
2/16/2012
1,438 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
Learn how to create a custom Business Connectivity Services (BCS) indexing connector for Search in SharePoint 2013.
(1)
7/16/2012
917 Downloads
C#
Tim Mayo
A command-line tool to cleanup the workflow history list in a SharePoint site. SharePoint has a "Workflow Auto Cleanup" job that deletes the association, but it does not delete items from the Workflow History list.


Background
When I started my job, I was told that one of th
(4)
2/3/2011
2,655 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
This sample writes a WCF service that returns all the items in SharePoint lists, and includes a sample client console application to test the service.
(2)
2/16/2012
1,831 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
Learn how to create a remote event receiver that performs actions based on changes in external data in SharePoint 2013.
(1)
7/16/2012
880 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
Demonstrates how to use JavaScript in an app for SharePoint to retrieve information about lists, and provide live tiles for navigating to those lists.
(1)
3/2/2013
253 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
This sample Provider-hosted SharePoint App shows how to perform following operations from a PHP site: List Documents, Check out a document, Check in a document, Edit document metadata, Upload a document
(1)
2/26/2013
267 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
Learn how to use Microsoft Visual Studio 2010 to create a Visual Web Part that uses a Microsoft Business Connectivity Services (BCS) external content type in Microsoft SharePoint Server 2010 to read and write data to the AdventureWorks sample database. This sample accompanies the
(5)
8/9/2011
4,090 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
This sample calls a WCF service from an event receiver; after a new item is added to a SharePoint list, the service returns data that is appended to the body of that new item.
(1)
2/16/2012
1,561 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View Samples
- Microsoft
This sample calls a WCF service that is hosted by Sharepoint, and whose code uses the SharePoint Foundation Server-Side Object Model.
(2)
2/16/2012
1,512 Downloads

Couldn't find the sample you were looking for?

91 - 100 of 431 Items