SPExport constructor (Uri, String)

Initializes an instance of the SPExport class that specifies the URL of the source web and the location of the content migration package.

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


Public Sub New ( _
    sourceSiteUrl As Uri, _
    dataFileLocation As String _
Dim sourceSiteUrl As Uri
Dim dataFileLocation As String

Dim instance As New SPExport(sourceSiteUrl, _
public SPExport(
    Uri sourceSiteUrl,
    string dataFileLocation


  • 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.


The content migration package is the CAB file (with a .cmp file extension) that is output by the export process.

See also


SPExport class

SPExport members

SPExport overload

Microsoft.SharePoint.Deployment namespace