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.UriThe URL for the destination Web site.
dataFileLocation
Type: System.StringThe path to the directory where the content migration package is located.
baseDataFileName
Type: System.StringThe 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.