SPImport.Settings property
Gets or sets import settings on the Microsoft.SharePoint.Deployment.SPImportSettings object.
Namespace: Microsoft.SharePoint.Deployment
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property Settings As SPImportSettings
Get
Set
'Usage
Dim instance As SPImport
Dim value As SPImportSettings
value = instance.Settings
instance.Settings = value
public SPImportSettings Settings { get; set; }
Property value
Type: Microsoft.SharePoint.Deployment.SPImportSettings
Returns a Microsoft.SharePoint.Deployment.SPImportSettings object that contains the specified import settings.
Remarks
If you pass the SPImportSettings object in the SPImport constructor, SPImport.SPImport, then this property returns the object with the properties you set, as in the first example, below. Otherwise, use the default constructor, then use the Settings property to set individual settings, as in the second example, below.
Examples
SPImport import = new SPImport();
import.Settings.BaseFileName = “bar”;
or
SPImportSettings settings = new SPImportSettings();
settings.SiteUrl = “bar”;
SPImport import = new SPImport(settings);