SPExport.Settings Property
Gets or sets export settings on the Microsoft.SharePoint.Deployment.SPExportSettings object.
Namespace: Microsoft.SharePoint.Deployment
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property Settings As SPExportSettings
Get
Set
'Usage
Dim instance As SPExport
Dim value As SPExportSettings
value = instance.Settings
instance.Settings = value
public SPExportSettings Settings { get; set; }
Property Value
Type: Microsoft.SharePoint.Deployment.SPExportSettings
Returns a Microsoft.SharePoint.Deployment.SPExportSettings object that contains the specified export settings.
Remarks
If you pass the SPExportSettings object in the SPExport constructor, SPExport.SPExport, 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
[C#]
SPExport export = new SPExport();
export.Settings.BaseFileName = "MyFileName";
or
[C#]
SPExportSettings settings = new SPExportSettings();
settings.SiteUrl = "MyFileName";
SPExport export = new SPExport(settings);