共用方式為


SPImport class

指定的內容匯入SharePoint Foundation網站集合使用以 XML 格式的移轉套件 (.cmp) 檔案的支援。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Deployment.SPDeployment
    Microsoft.SharePoint.Deployment.SPImport

Namespace:  Microsoft.SharePoint.Deployment
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPImport _
    Inherits SPDeployment
'用途
Dim instance As SPImport
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPImport : SPDeployment

備註

與其他類別支援匯入、 匯出、 發佈、 和移轉 Windows SharePoint 內容,以及支援的備份與還原功能Deployment命名空間中有參與此類別。

您可以啟動匯入作業先初始化具有必要的匯入設定, Microsoft.SharePoint.Deployment.SPImportSettings類別的執行個體,然後SPImportSettings物件傳遞至SPImport類別 ; 建構函式您呼叫SPImport.Run方法。

Microsoft.SharePoint.Deployment.SPImportSettings類別會封裝匯入選項可控制等項目,如何將資料匯入、 是否保留身分識別的物件、 如何匯入演算法搜尋的現存的物件,其中階層中的目的地資料是匯入 (也就是如何將資料是重設父代),以及提供選項來匯入其他資訊,例如安全性、 版本設定以及其他檔案資訊。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPImport members

Microsoft.SharePoint.Deployment namespace