Share via


SPImport Members

Include Protected Members
Include Inherited Members

Supports importing specified content into a SharePoint Foundation site collection using a migration package (.cmp) file in XML format.

The SPImport type exposes the following members.

Constructors

  Name Description
Public method SPImport() Initializes a nonparameterized instance of the SPImport class.
Public method SPImport(SPImportSettings) Initializes an instance of the SPImport class with the desired Microsoft.SharePoint.Deployment.SPImportSettings values passed in.
Public method SPImport(Uri, String, String) Initializes an instance of the SPImport class that specifies the URL of the source web and the location of the content migration package.

Top

Properties

  Name Description
Public property Settings Gets or sets import settings on the Microsoft.SharePoint.Deployment.SPImportSettings object.
Protected property Site Gets or sets a protected instance of an SPSite object. (Inherited from SPDeployment.)

Top

Methods

  Name Description
Public method Cancel Do not use. This method is not implemented in the current version of Microsoft SharePoint Foundation. (Overrides SPDeployment.Cancel().)
Public method Dispose Releases managed resources upon completing or cancelling the deployment operation. (Inherited from SPDeployment.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnCanceled Raises the Canceled event. (Inherited from SPDeployment.)
Protected method OnCompleted Raises the Completed event. (Inherited from SPDeployment.)
Protected method OnProgressUpdated Raises the ProgressUpdatedevent(). (Inherited from SPDeployment.)
Protected method OnStarted() Raises the Startedevent(). (Inherited from SPDeployment.)
Protected method OnStarted(SPDeploymentEventArgs) Raises the Started event. (Inherited from SPDeployment.)
Public method Run Lauches the import operation. (Overrides SPDeployment.Run().)
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event Canceled Event that is raised when the deployment operation is cancelled. (Inherited from SPDeployment.)
Public event Completed Event that is raised when the deployment operation is completed. (Inherited from SPDeployment.)
Public event Error Event that is raised when the deployment operation encounters an error or a warning. (Inherited from SPDeployment.)
Public event ObjectImported An event that is raised when the specified object has been successfully imported.
Public event ProgressUpdated Event that is raised when the deployment operation recalculates the current progress of the deployment operation. (Inherited from SPDeployment.)
Public event Started Event that is raised when the deployment operation is started. (Inherited from SPDeployment.)
Public event Uncompressing An event that is raised when the import operation is about to extract files from the content migration (.cmp) file.

Top

See Also

Reference

SPImport Class

Microsoft.SharePoint.Deployment Namespace