Share via


SPDeploymentSettings constructor (Uri, String, Boolean, String)

Initializes an instance of the SPDeploymentSettings class.

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

Syntax

'Declaration
Protected Sub New ( _
    siteUrl As Uri, _
    fileLocation As String, _
    fileCompression As Boolean, _
    baseFileName As String _
)
'Usage
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
)

Parameters

  • siteUrl
    Type: System.Uri

    The absolute URL for the site containing the content that is being imported or exported.

  • fileLocation
    Type: System.String

    The path to the directory where content migration packages are located.

  • fileCompression
    Type: System.Boolean

    true to compress the content migration package; otherwise, false. The default is true.

  • baseFileName
    Type: System.String

    The base file name to use for content migration packages.

Remarks

A content migration package can consist of one or more CAB files, which are named based on the baseFileName parameter. (To control the maximum size of a CAB file, see SPExportSettings.FileMaxSize.) If the value of baseFileName is "MyWeb", and there are multiple CAB file in the package, they are named "MyWeb1.cab", "MyWeb2.cab", and so on.

See also

Reference

SPDeploymentSettings class

SPDeploymentSettings members

SPDeploymentSettings overload

Microsoft.SharePoint.Deployment namespace