Share via


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)

Syntax

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

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

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.

Remarks

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

See Also

Reference

SPExport Class

SPExport Members

SPExport Overload

Microsoft.SharePoint.Deployment Namespace