SPExportSettings constructor (Uri, String, String)

Initializes a new instance of the SPExportSettings class that specifies the URL of the source Web site, the location of the content migration package, and the base file name for the content migration package.

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

Syntax

'Declaration
Public Sub New ( _
    sourceSiteUrl As Uri, _
    dataFileLocation As String, _
    baseDataFileName As String _
)
'Usage
Dim sourceSiteUrl As Uri
Dim dataFileLocation As String
Dim baseDataFileName As String

Dim instance As New SPExportSettings(sourceSiteUrl, _
    dataFileLocation, baseDataFileName)
public SPExportSettings(
    Uri sourceSiteUrl,
    string dataFileLocation,
    string baseDataFileName
)

Parameters

  • sourceSiteUrl
    Type: System.Uri

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

  • dataFileLocation
    Type: System.String

    The path to the directory where the content migration package is located.

  • baseDataFileName
    Type: System.String

    The base file name of the content migration package (*.cab).

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 multiple CAB files are in the package, the files are named "MyWeb1.cab", "MyWeb2.cab", and so on.

See also

Reference

SPExportSettings class

SPExportSettings members

SPExportSettings overload

Microsoft.SharePoint.Deployment namespace