共用方式為


SPDeploymentSettings constructor (Uri, String, Boolean, String)

初始化SPDeploymentSettings類別的執行個體。

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

Syntax

'宣告
Protected Sub New ( _
    siteUrl As Uri, _
    fileLocation As String, _
    fileCompression As Boolean, _
    baseFileName As String _
)
'用途
Dim siteUrl As Uri
Dim fileLocation As String
Dim fileCompression As Boolean
Dim baseFileName As String

Dim instance As New SPDeploymentSettings(siteUrl, _
    fileLocation, fileCompression, baseFileName)
protected SPDeploymentSettings(
    Uri siteUrl,
    string fileLocation,
    bool fileCompression,
    string baseFileName
)

參數

  • siteUrl
    Type: System.Uri

    包含目前的內容網站的絕對 URL 匯入或匯出。

  • fileLocation
    Type: System.String

    內容移轉套件所在的目錄路徑。

  • fileCompression
    Type: System.Boolean

    若要壓縮的內容移轉套件 ; true否則,請false。預設值為true。

  • baseFileName
    Type: System.String

    若要使用內容移轉套件的基底檔案名稱。

備註

內容移轉套件可包含一或多個 CAB 檔,其名為根據baseFileName參數。(若要控制 CAB 檔案的大小上限,請參閱SPExportSettings.FileMaxSize)。如果baseFileName 的值是"MyWeb",而且套件中有多個 CAB 檔案,它們是名為"MyWeb1.cab"、"MyWeb2.cab",依此類推。

請參閱

參照

SPDeploymentSettings class

SPDeploymentSettings members

SPDeploymentSettings overload

Microsoft.SharePoint.Deployment namespace