Condividi tramite


SharePoint Foundation 2010 Code Samples

Applies to: SharePoint Foundation 2010

The following code samples demonstrate ways to use Microsoft SharePoint Foundation 2010 features and their associated APIs. These code samples are compilable and are typically in the form of Microsoft Visual Studio 2010 solutions.

SharePoint Foundation 2010 Code Samples

  • Code Sample: Silverlight List Viewer

    The Silverlight List Viewer sample creates a Silverlight application that, when hosted on a SharePoint Web site, will display list items from that site. The sample creates a drop-down picker through which to select lists and display their contents within a dynamically generated Grid control. The sample illustrates how to use delegates for callback methods in asynchronous processing, and how to use a Dispatcher object to make changes in the SharePoint Foundation user interface.

  • SharePoint 2010 Code Sample: Sandboxed Solution Employee Browser

    A C# sample that shows how to create a graphical user interface for the management of database snapshots.

  • Code Sample: Creating a Content Class That Can Be Backed Up

    A C# code sample that shows how to create a class that represents content and that can be backed up and restored because the class implements the IBackupRestore interface.

  • Code Sample: Custom Field

    A C# code sample that shows how to create a custom field (column) that can be added to SharePoint Foundation lists. The sample implements a field that holds the 10-digit ISBN code of a book.

  • Code Sample: Manage Web Application Snapshots

    A C# sample that shows how to create a graphical user interface for the management of database snapshots.

See Also

Concepts

Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008

Other Resources

SharePoint 2010: SDK: Code Samples

What's New in SharePoint Server 2010

What's New in SharePoint Foundation 2010

Video: Using the SharePoint 2010 SDK Help

SharePoint Developer Center

SharePoint Developer Team Blog