Share via


SPExport constructor (Uri, String, String)

Initializes an instance of the SPExport class that specifies the URL of the source web, 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 SPExport(sourceSiteUrl, _
    dataFileLocation, baseDataFileName)
public SPExport(
    Uri sourceSiteUrl,
    string dataFileLocation,
    string baseDataFileName
)

Parameters

  • sourceSiteUrl
    Type: System.Uri

    The URL for the site that contains 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 there are multiple CAB files in the package, they are named "MyWeb1.cab", "MyWeb2.cab", and so on.

See also

Reference

SPExport class

SPExport members

SPExport overload

Microsoft.SharePoint.Deployment namespace