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

Applies to: SharePoint Foundation 2010

The Microsoft SharePoint 2010 Software Development Kit (SDK) includes a C# 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.

To download the SDK

  1. Navigate to https://www.microsoft.com/downloads/details.aspx?FamilyID=f0c9daf3-4c54-45ed-9bde-7b4d83a8f26f&displaylang=en.

  2. Follow the instructions to download and install the SDK.

To use the sample

  1. The sample is a ZIP file located in a subfolder of %PROGRAMFILES%\Microsoft SDKs. Extract the files, preserving the folder structure.

  2. Open the solution file in Microsoft Visual Studio.

  3. Read the ReadMe file included with the sample.

Demonstrates

How to create a class that represents content and that can be backed up and restored.