SPImportSettings constructor (Uri, String, String)

Initializes a new instance of the SPImportSettings class, including the URL for the destination Web site, the directory containing the content migration package, and the base file name 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, _
    baseDataFileName As String _
)
'Usage
Dim sourceSiteUrl As Uri
Dim dataFileLocation As String
Dim baseDataFileName As String

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

Parameters

  • sourceSiteUrl
    Type: System.Uri

    The URL for the destination Web site.

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

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

SPImportSettings class

SPImportSettings members

SPImportSettings overload

Microsoft.SharePoint.Deployment namespace