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
Follow the instructions to download and install the SDK.
To use the sample
The sample is a ZIP file located in a subfolder of %PROGRAMFILES%\Microsoft SDKs. Extract the files, preserving the folder structure.
Open the solution file in Microsoft Visual Studio.
Read the ReadMe file included with the sample.
How to create a class that represents content and that can be backed up and restored.