Supports importing specified content into a SharePoint Foundation site collection using a migration package (.cmp) file in XML format.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
This class participates with other classes in the Deployment namespace to support importing, exporting, publishing, and migrating Windows SharePoint content, as well as supporting backup and restore capabilities.
You can initiate an import operation by first initializing an instance of the Microsoft.SharePoint.Deployment.SPImportSettings class with the required import settings, and then passing the SPImportSettings object to the constructor of class; you then call the SPImport.Run method.
The Microsoft.SharePoint.Deployment.SPImportSettings class encapsulates the import options that control such things as how the data is imported, whether or not object identity is preserved, how the import algorithm searches for existing objects, where in the destination hierarchy the data is imported (that is, how the data is re-parented), as well as providing options to import additional information, such as security, versioning, and other file information.